← Blog/MCP
Debug webhooks with Cursor MCP
Create a workspace API key, connect an MCP client to Mercur remote MCP, and inspect tunnel request history from the IDE.
When a webhook fails, the payload that actually hit Mercur is already in request history. With remote MCP, an MCP client (Cursor, Claude Desktop, and others) can list tunnels and open those requests without you copy-pasting from the console.
Prerequisites
- A Mercur workspace with API keys enabled
- At least one HTTP endpoint with logged requests
- An MCP client that supports remote / HTTP servers
Create a workspace API key
In the console open Settings → Workspace → API keys. Any member can create a key; copy the secret and MCP config snippet once.Open Workspace Settings
Add the remote MCP server in your client
Paste the snippet into your MCP client as a remote / HTTP server so it calls console …/api/mcp with Authorization: Bearer mcr_… The snippet shape is:
{
"mcpServers": {
"mercur": {
"url": "https://console.mercur.sh/api/mcp",
"headers": {
"Authorization": "Bearer mcr_…"
}
}
}
}On localhost the URL uses your console origin instead.
List endpoints and inspect requests
Ask the agent to call list_endpoints, then list_requests / get_request for a failed webhook. Summaries omit bodies; detail includes headers and bodies. Tools are scoped to the workspace that owns the key — they cannot read another workspace’s tunnels.