Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
5-streamlining.md1.04 kB
  # Streamlining If you find yourself running the same command many times, here are few tips to save yourself some key strokes. ## Rerun Last Task If you want to rerun the last task with all the same options specified, bring up the Command Palette (`⇧⌘P`) and choose `Rerun Last Task`.   ## Keyboard Shortcuts You can also set up custom tasks and assign keyboard shortcuts to them. In .vscode/tasks.json add a task like this: ```json { "label": "Test Affected", "type": "shell", "command": "nx affected --target=test" } ``` Then from the Command Palette (`⇧⌘P`) choose `Preferences: Open Keyboard Shortcuts (JSON)`. Then add the following shortcut: ```json { "key": "ctrl+cmd+t", "command": "workbench.action.tasks.runTask", "args": "Test Affected" } ``` Now, pressing `^⌘T` will run `nx affected --target=test`.   Here is more information on [VSCode tasks](https://code.visualstudio.com/docs/editor/tasks) and [keyboard shortcuts](https://code.visualstudio.com/docs/getstarted/keybindings).

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