- git clone
npm install
npm run build
- In a cursor window for one of your existing projects, make a
.cursor
folder and add a filemcp.json
in the folder like this. - Replace the
args
with the actual path to this tool - Click "enable" in the popup:
- Open an agent window and ask cursor to do some stuff
- Then say something like "Send chat history to metr"
- You should see it say "Called MCP tool
send_to_metr
" - The report will be posted to the configured URL
Set the required environment variables in your MCP configuration.
Required environment variables:
METR_URL
- The upload function URL where reports will be postedAPI_KEY
- Your API key for authentication
npm run build
npx @modelcontextprotocol/inspector node dist/index.js
In .cursor/mcp.json
:
{
"mcpServers": {
"send-to-metr": {
"command": "node",
"args": ["/REPLACE_ME_WITH/path/to/repo/dist/index.js"],
"env": {
"METR_URL": "https://your-upload-function-url",
"API_KEY": "your-api-key"
}
}
}
}
In .vscode/mcp.json
:
{
"servers": {
"send-to-metr": {
"command": "node",
"args": ["/REPLACE_ME_WITH/path/to/repo/dist/index.js"],
"env": {
"METR_URL": "https://your-upload-function-url",
"API_KEY": "your-api-key"
}
}
}
}