Client Configuration
Configure VS Code, Claude Desktop, Cursor, and other MCP clients to connect to your BoxLang MCP server.
This guide covers how to configure different MCP clients to connect to the BoxLang MCP server.
🔌 Connection Basics
The BoxLang MCP server is available at:
http://localhost:8080/~bxmcp/boxlang.bxmAll clients use the same JSON-RPC 2.0 endpoint. The only differences are where and how you store the configuration.
Common Configuration Shape
{
"mcpServers": {
"boxlang": {
"url": "http://localhost:8080/~bxmcp/boxlang.bxm",
"headers": {
"Authorization": "Bearer your-auth-token"
}
}
}
}Replace
your-auth-tokenwith the value ofauthTokenfrom your module settings. IfauthTokenis empty, omit theheadersblock.
🆚 VS Code
Create a .vscode/mcp.json file in your project root:
VS Code automatically detects and connects to MCP servers defined in .vscode/mcp.json when you open the workspace. The MCP tools become available to GitHub Copilot and other AI features.
🤖 Claude Desktop
Add the server configuration to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after adding the configuration.
🖥️ Cursor
Create a .cursor/mcp.json file in your project root:
Cursor will automatically connect to the MCP server and make the tools available for AI-powered development.
🐚 Generic HTTP Client (curl)
List All Tools
Call a Tool
List All Prompts
Get a Specific Prompt
📝 Tool Filtering at the Client Level
Some MCP clients support restricting which tools are visible. This is a client-side setting and does not replace server-side authorization. For true access control, use the server-side authToken array-of-structs approach described in Security & Access Control.
🌐 Remote Connections
To connect to a remote BoxLang server (not localhost):
Update
allowedIPsin your module configuration to include your client's IP or CIDR rangeSet a strong
authToken— never expose a remote endpoint without authenticationEnable HTTPS on your web server for encrypted transport
Update the URL in your client configuration to point to the remote host
🎮 Interactive CLI
The module ships with a built-in interactive CLI client. See the README for usage instructions.
📚 Next Steps
Quick Start — Basic installation and first tool call
Security & Access Control — Secure your MCP server
Operations & Monitoring — Health checks and runtime monitoring
Last updated
Was this helpful?
