I am getting this error with @Nx and the vscode plugin after enabling the mcpserver. It…
- User
I am getting this error with @Nx and the vscode plugin after enabling the mcpserver. It says "None of your workspace projects have an architect or targets command"
- Assistant
Your Lordship,
This error occurs when Nx can't find any projects with defined targets or architects in your workspace. Based on the documentation, there are a few likely solutions:
Let me examine your workspace configuration first.
codeListed current directory • **28** resultsName 📁 .cursor📁 .git📄 .DS_Store📄 nx.json📁 .nx📄 pnpm-workspace.yaml📄 .gitignore📄 package.json📄 tsconfig.json📁 documentation📁 packages📄 vitest.config.template.ts📄 vitest.workspace.js📄 CONTRIBUTING.md📄 LICENSE📄 eslint.config.js📄 prettier.config.js📄 tsconfig.base.json📁 .specstory📁 apps📁 .github📄 .cursorignore📄 README.md📄 CHANGELOG.md📁 prompts📁 config📁 .vscode📄 .envLet me check your nx.json configuration:
Read file: nx.json
Let me examine your VS Code configuration:
codeListed directory .vscode • **4** resultsName - User
I already initialized nx. it only broke after enabling the mcp server
- Assistant
Your Grace,
It appears that the MCP server integration is the source of the issue, not Nx initialization itself. When the Nx-MCP server starts, it fails to detect your project targets.
Let's check your package.json to see if you have the correct dependencies:
Read file: package.json
Now let's verify the VS Code extension settings:
Read file: .vscode/settings.json
Let me check for the nx-mcp server package:
codeGrep search for "nx-mcp" • **1** filesFile Line Match file:///Users/[user]/Desktop/Code/obsidian-magic/.cursor/mcp.json - User
For the code present, we get this error:
codeUnable to resolve path to module '@obsidian-magic/logger'.How can I resolve this? If you propose a fix, please make it concise.
- Assistant
Your Grace,
Based on the project structure and error, the issue is that there's no
@obsidian-magic/loggerpackage in your workspace. Here are two options to fix this:-
Create the logger package:
codeListed directory packages • **6** results
Name 📁 utils📁 core📁 logger📁 testing📁 types📄 .DS_StoreI see there's already a logger directory. Let's check if it's properly set up:
codeListed directory packages/logger • **6** resultsName 📁 node_modules📄 package.json📄 vitest.config.ts📄 README.md📄 tsconfig.json📁 srcRead file: packages/logger/package.json
-