Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
get-generator-context-from-path.ts564 B
import { NxGeneratorContextFromPathRequest } from '@nx-console/language-server-types'; import { TaskExecutionSchema } from '@nx-console/shared-schema'; import { getNxlsClient } from '@nx-console/vscode-lsp-client'; export async function getGeneratorContextFromPath( generator: TaskExecutionSchema, path: string ): Promise< | { project?: string; projectName?: string; path?: string; directory?: string; } | undefined > { return getNxlsClient().sendRequest(NxGeneratorContextFromPathRequest, { generator, path, }); }

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