Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
get-source-map.ts738 B
import { NxSourceMapFilesToProjectsMapRequest, NxTargetsForConfigFileRequest, } from '@nx-console/language-server-types'; import { getNxlsClient } from '@nx-console/vscode-lsp-client'; import type { TargetConfiguration } from 'nx/src/devkit-exports'; export async function getSourceMapFilesToProjectsMap(): Promise< Record<string, string[]> | undefined > { return getNxlsClient().sendRequest( NxSourceMapFilesToProjectsMapRequest, undefined ); } export async function getTargetsForConfigFile( projectName: string, configFilePath: string ): Promise<Record<string, TargetConfiguration> | undefined> { return getNxlsClient().sendRequest(NxTargetsForConfigFileRequest, { projectName, configFilePath, }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nrwl/nx-console'

If you have feedback or need assistance with the MCP directory API, please join our Discord server