Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
add-project-items-to-option-processor.ts669 B
import { GeneratorSchema } from '@nx-console/shared-generate-ui-types'; import { SchemaProcessor } from '../nx-console-plugin-types'; import { NxWorkspace } from '@nx-console/shared-types'; import { isProjectOption } from '@nx-console/shared-schema'; export const addProjectItemsToOptionProcessor: SchemaProcessor = ( schema: GeneratorSchema, workspace: NxWorkspace ) => { return { ...schema, options: (schema.options ?? []).map((option) => { const projects = Object.keys(workspace.projectGraph.nodes); if (isProjectOption(option) && projects.length > 0) { option.items = projects.sort(); } return option; }), }; };

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