The dotcontext MCP server can be configured in two ways depending on whether you're developing locally or using the published package.
When developing locally, follow these steps:
-
First, run
npm run buildto generate the dist files. This compiles TypeScript files to JavaScript in the dist directory. -
Configure your MCP settings file. The file is typically located at:
- Windows:
%APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json - macOS:
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
- Windows:
-
Use this configuration, replacing the paths with your actual full paths:
{
"mcpServers": {
"dotcontext": {
"command": "node",
"args": ["C:/full/path/to/your/project/dist/mcp.js"],
"env": {
"NODE_ENV": "development"
},
"disabled": false,
"alwaysAllow": []
}
}
}IMPORTANT: Always use:
- Full absolute paths (no relative paths)
- Forward slashes (/) even on Windows
- The correct path to your local development directory
For production use (after the package is published to npm), use this configuration:
{
"mcpServers": {
"dotcontext": {
"command": "npx",
"args": ["-y", "dotcontext", "dotcontext-mcp"],
"disabled": false,
"alwaysAllow": []
}
}
}This configuration uses npx to run the latest published version of the package.
- Clone the repository
- Install dependencies with
npm install - Build the project with
npm run build - Configure your MCP settings using the development configuration above
- Run tests with
npm test - Start development with
npm run dev
You can test your MCP server implementation using the MCP inspector:
npm run inspectorThis will validate your MCP server implementation and show available tools and resources.