Configuration
.mcp.json
Project-scoped MCP server registration.
Schema
json
{
"mcpServers": {
"<server-name>": {
"command": "<executable>",
"args": ["<arg1>", "<arg2>"],
"env": { "OPTIONAL_ENV": "value" }
}
}
}larkx example (preferred)
json
{
"mcpServers": {
"larkx": {
"command": "larkx",
"args": ["mcp"]
}
}
}larkx example (absolute path)
Use this if larkx is not on PATH globally, e.g. when installed locally:
json
{
"mcpServers": {
"larkx": {
"command": "node",
"args": ["D:\\absolute\\path\\to\\larkx\\bin\\larkx.js", "mcp"]
}
}
}Notes
- Path separators: use forward slashes on macOS/Linux, escaped backslashes on Windows
- You can register multiple servers in the same file
- Changes require a VS Code reload