AI SDK Assistant — Claude Code MCP Server Configuration
Quick Setup (All Platforms)
Instead of using the CLIclaude mcp add command (which has known issues with spaces in server names), paste the JSON directly into the appropriate config file.
Important: The server name must not contain spaces. Use CRSDK consistently across all configs.
Project Scope — .mcp.json
Create a .mcp.json file in your project root. This is the recommended approach for team collaboration.
macOS / Linux
Windows
On Windows,npx must be wrapped with cmd /c to resolve correctly:
.mcp.json to version control to share with your team.
User Scope — ~/.claude.json (Global)
Available across all projects on your machine.
Finding ~/.claude.json
The ~ refers to your home directory. The full path is:
| OS | Path |
|---|---|
| macOS | /Users/<your-username>/.claude.json |
| Linux | /home/<your-username>/.claude.json |
| Windows | C:\Users\<your-username>\.claude.json |
.). To see it:
- macOS Finder: Press
Cmd + Shift + .to toggle hidden files - Windows Explorer: View → Show → Hidden items
- Terminal: Open directly with
code ~/.claude.json(VS Code) ornotepad %USERPROFILE%\.claude.json(Windows)
macOS / Linux
Merge into your existing~/.claude.json (create it if it doesn’t exist):
Windows
Local Scope — .claude.local.json (Private)
Private to the current user and project only. Place this in your project root.
macOS / Linux
Windows
Scope Priority
When the same server is defined in multiple scopes: Local > Project > UserTool Permissions
To auto-approve all AI SDK Assistant tools, add this to your settings config:- User scope:
~/.claude.json - Project scope:
.claude/settings.json - Local scope:
.claude/settings.local.json
Verification
After saving the config, restart Claude Code or start a new session, then run:CLI Alternative
If you prefer using the CLI instead of editing JSON files directly:macOS / Linux
Windows (PowerShell or CMD)
Troubleshooting
| Issue | Solution |
|---|---|
npx not found | Ensure Node.js (v18+) is installed and npx is on your PATH. Verify with npx --version. |
Windows: npx not recognized | Use the cmd /c wrapper as shown in the Windows configs above. If still failing, try the full path: C:\\Program Files\\nodejs\\npx.cmd |
| Server not connecting | Ensure you’re not behind a proxy/VPN blocking railway.app. |
approvedTools not working | Verify the server name in your MCP config matches the prefix in approvedTools (both should use CRSDK). |
.mcp.json not detected | File must be in the project root directory. Restart Claude Code after creating it. |
| macOS: permission prompt on first use | For project-scoped .mcp.json, Claude Code will prompt for approval on first use. Accept to continue. |

