Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
empty-state-messages.ts1.36 kB
import { commands, window } from 'vscode'; export function showNoProjectsMessage(workspaceIsDefined = false) { if (workspaceIsDefined) { window .showWarningMessage( `No projects found. Click to refresh workspace.`, 'Refresh', 'OK' ) .then((selection) => { if (selection === 'Refresh') { commands.executeCommand('nxConsole.refreshWorkspace'); } }); } else { window.showWarningMessage( `No projects found. Did you run npm/pnpm/yarn install?` ); } } export function showNoTargetsMessage(workspaceIsDefined = false) { if (workspaceIsDefined) { window .showWarningMessage( `No targets found. Click to refresh workspace.`, 'Refresh', 'OK' ) .then((selection) => { if (selection === 'Refresh') { commands.executeCommand('nxConsole.refreshWorkspace'); } }); } else { window.showWarningMessage( `No projects found. Did you run npm/pnpm/yarn install?` ); } } export function showNoProjectAtPathMessage(path: string) { window.showWarningMessage( `No project found at ${path}. Did you run npm/pnpm/yarn install?` ); } export function showNoGeneratorsMessage() { window.showWarningMessage( 'No generators found. Did you run npm/pnpm/yarn install?' ); }

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