Connecting MCP Hosts
This page shows practical connection patterns for PrimeCal MCP with the May.B.Late demo user.
All sample outputs in this page assume you are connected as mayblate.
Connection Modes
PrimeCal supports both common MCP transport styles:
- Streamable HTTP to
https://<your-primecal>/api/mcp - STDIO via the PrimeCal MCP stdio entry script
Use one agent API key per host instance.
Chrome MCP (HTTP)
Use this when your Chrome MCP extension/bridge supports remote HTTP MCP servers.
- Open your Chrome MCP host settings.
- Add a server named
primecal. - Set endpoint URL to
https://<your-primecal>/api/mcp. - Add header
Authorization: Agent ag_sk_<token>. - Save and reconnect.
- Run
tools/list, then callprimecal.calendars.list.
Example JSON block used by many Chrome MCP tools:
{
"name": "primecal",
"transport": "http",
"url": "https://primecal.example.com/api/mcp",
"headers": {
"Authorization": "Agent ag_sk_your_token_here"
}
}
If your extension uses a different field name (endpoint, serverUrl, authHeaders), keep the same values but map them to that UI.
Claude Desktop (STDIO)
Use this when you want local desktop-hosted MCP with PrimeCal backend access.
Prerequisites:
- PrimeCal backend dependencies installed
- backend built (
npm --prefix backend-nestjs run build) - valid
PRIMECAL_MCP_AGENT_KEY
Example claude_desktop_config.json entry:
{
"mcpServers": {
"primecal": {
"command": "node",
"args": [
"/absolute/path/to/primecal_app1/backend-nestjs/dist/src/mcp-server/bin/primecal-mcp-stdio.js"
],
"env": {
"PRIMECAL_MCP_AGENT_KEY": "ag_sk_your_token_here",
"DATABASE_URL": "postgres://...",
"JWT_SECRET": "..."
}
}
}
}
Development alternative (without build):
{
"mcpServers": {
"primecal": {
"command": "npx",
"args": [
"ts-node",
"-r",
"tsconfig-paths/register",
"src/mcp-server/bin/primecal-mcp-stdio.ts"
],
"cwd": "/absolute/path/to/primecal_app1/backend-nestjs",
"env": {
"PRIMECAL_MCP_AGENT_KEY": "ag_sk_your_token_here"
}
}
}
}
VS Code or Cursor
Most VS Code/Cursor MCP integrations also accept HTTP MCP server definitions.
Use the same values as Chrome:
- URL:
https://<your-primecal>/api/mcp - Auth header:
Authorization: Agent ag_sk_<token>
Start validation with:
tools/listprimecal.profile.getprimecal.context.snapshot
Validation Checklist (May.B.Late)
After connecting, verify:
primecal.profile.getreturnstimezone: Europe/Budapest.primecal.calendars.listincludesWork,Personal,Side projects.primecal.tasks.listreturns seeded tasks.
Screenshot Capture
For repeatable screenshots (agent UI, Chrome host config, tool call output, profile page), use:
docs/assets/agents/SCREENSHOT_CAPTURE.md- Browser MCP Manual Checklist
In this repository state, PrimeCal UI screenshots are already bundled under docs/assets/agents/. Chrome-host specific screenshots are documented with exact capture steps and target file names in the runbook.