Prerequisites
Before configuring the MCP server, ensure you have:- A Pragmatiks account with API access
- Your authentication token (get it from the dashboard or via
pragma auth token)
Claude Desktop
Claude Desktop stores MCP server configuration in a JSON file. Configuration file location:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code
Claude Code can be configured via the CLI or by editing the configuration file directly.Using the CLI
Direct configuration
Configuration file location:~/.claude.json
Cursor
Cursor supports both global and project-level MCP configuration. Configuration file locations:- Global:
~/.cursor/mcp.json - Project:
.cursor/mcp.jsonin your project root
Cursor supports environment variable interpolation with
${env:VAR_NAME}. Set PRAGMA_TOKEN in your shell environment to avoid hardcoding tokens.VS Code (GitHub Copilot)
VS Code with GitHub Copilot supports MCP servers starting from VS Code 1.102. Configuration file location:.vscode/mcp.json in your workspace
Configuration:
- Open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Run “MCP: List Servers” to verify the configuration
- Click “Start” next to the Pragmatiks server
Gemini CLI
Gemini CLI stores MCP configuration in its settings file. Configuration file locations:- Global:
~/.gemini/settings.json - Project:
.gemini/settings.jsonin your project root
Using the CLI
Direct configuration
Gemini CLI uses
httpUrl for HTTP-based MCP servers (not url).Verifying the Connection
After configuring any tool, test the connection by asking your AI assistant:Troubleshooting
”Unauthorized” errors
- Verify your token is valid:
pragma auth token - Generate a new token from the dashboard
- Ensure no extra whitespace in the Authorization header
Server not appearing
- Restart your AI tool completely after configuration changes
- Validate your JSON syntax with an online validator
- Check file permissions on the configuration file
Tools not available
- Some tools may require specific permissions in your Pragmatiks account
- Verify you have access to the resources you’re trying to manage
Security Best Practices
Recommended approaches:- Environment variables - Use
${env:PRAGMA_TOKEN}syntax where supported - Git ignore - Add MCP config files to
.gitignore - Token rotation - Regularly rotate API tokens from the dashboard
- Minimal scope - Use project-level configuration when possible