Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
get-project-by-path.ts665 B
import type { ProjectConfiguration } from 'nx/src/devkit-exports'; import { NxProjectByPathRequest, NxProjectByRootRequest, } from '@nx-console/language-server-types'; import { getNxlsClient } from '@nx-console/vscode-lsp-client'; export async function getProjectByPath( selectedPath: string | undefined ): Promise<ProjectConfiguration | undefined | null> { return getNxlsClient().sendRequest(NxProjectByPathRequest, { projectPath: selectedPath, }); } export async function getProjectByRoot( projectRoot: string ): Promise<ProjectConfiguration | undefined | null> { return getNxlsClient().sendRequest(NxProjectByRootRequest, { projectRoot }); }

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