mcp
v0.12.1MCP server for the CognitionDesk platform: create and manage AI assistants, workflows, squads and knowledge, and inspect your usage — authenticated with your…
MCP server for the CognitionDesk platform. Connect Claude (or any MCP client) to your CognitionDesk account to create and manage AI assistants, workflows, squads and knowledge — and inspect your usage — from your AI tool of choice. Add to your claude_desktop_config.json: Then ask things like *"list my assistants"*, *"create a customer-support assistant for my store"*, or *"how much of my plan have I used this month?"*.
Summary extracted from the README.
@cognitiondesk/mcp
MCP server for the CognitionDesk platform. Connect Claude (or any MCP client) to your CognitionDesk account to create and manage AI assistants, workflows, squads and knowledge — and inspect your usage — from your AI tool of choice.
Requires a paid CognitionDesk plan (Pro or Business) and your own API key. Get it in the app under Dashboard → API keys.
Quick start
Claude Code
claude mcp add cognitiondesk -e COGNITIONDESK_API_KEY=your_key_here -- npx -y @cognitiondesk/mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cognitiondesk": {
"command": "npx",
"args": ["-y", "@cognitiondesk/mcp"],
"env": {
"COGNITIONDESK_API_KEY": "your_key_here"
}
}
}
}
Then ask things like "list my assistants", "create a customer-support assistant for my store", or "how much of my plan have I used this month?".
Remote (no install)
The same server also speaks Streamable HTTP, so you can point your client at a hosted
URL instead of running anything locally. Your API key travels as a request header — the
server keeps no key of its own, and every request is authenticated against
/platform-api/* exactly like the local mode.
claude mcp add --transport http cognitiondesk https://mcp.cognitiondesk.com/mcp \
--header "x-api-key: your_key_here"
The hosted endpoint rolls out with its DNS record; until then, self-host it with the
Dockerfilein this repo (node dist/http.js, port5310) and use your own URL.
Authorization: Bearer <key> works too, for clients that can only send that header.
Requests without a key are rejected at initialize with 401 — you find out while
configuring the client, not on your first tool call.
Tools
128 tools, 9 guides (cognitiondesk://guides/*) and 5 playbooks (MCP prompts) in 0.11.0.
| Area | Tools |
|---|---|
| Connection & accounts | get_connection_status, use_account, list_projects, list_scopes |
| Assistants | list_assistants, get_assistant, create_assistant, update_assistant, delete_assistant, try_assistant, publish_assistant, list_assistant_versions, rollback_assistant, assign_workflow_to_assistant, get_assistant_access, set_assistant_access |
| Audience & handoff | list_assistant_contacts, upsert_assistant_person, upsert_assistant_contact, delete_assistant_person, delete_assistant_contact, get_identity_audit, list_handoff_contacts, upsert_handoff_contact, delete_handoff_contact |
| Knowledge | search_knowledge, get_knowledge_stats, ingest_knowledge_text, ingest_knowledge_url, ingest_knowledge_github, list_knowledge_entries, delete_knowledge_entry, estimate_knowledge_ingest, get_knowledge_entry, update_knowledge_entry, ingest_knowledge_document, ingest_knowledge_image, knowledge_maintenance |
| Skills | list_skills, resolve_skills, create_skill, update_skill, delete_skill, toggle_skill, get_skill, list_skill_packs, list_builtin_skills, export_skill, import_skills, skill_collections |
| Custom tools | list_custom_tools, get_custom_tool, create_custom_tool, update_custom_tool, delete_custom_tool |
| Workflows | list_workflows, get_workflow, create_workflow, update_workflow, run_workflow, publish_workflow, list_workflow_versions, get_workflow_analytics, workflow_templates |
| Schedules, reports & loops | list_schedules, propose_schedule, pause_schedule, list_schedule_runs, list_reports, get_report, manage_loops |
| Squads | create_squad, list_squad_templates, create_squad_from_template, get_wizard_status, cancel_wizard |
| Channels & widget | list_channels, create_web_widget, get_web_widget, update_web_widget, widget_identity, list_channel_types |
| Social publishing | list_social_connections, connect_youtube_channel, list_youtube_videos, upload_youtube_video, update_youtube_video |
| Agenda | get_agenda, update_agenda, list_agenda_appointments, agenda_calendar_link |
| Inventory | list_inventory, import_inventory_items, get_import_status, list_import_sources, sync_import_source, seed_inventory, list_inventory_imports |
| Tasks | list_tasks, get_task, create_task, update_task, delete_task, get_tasks_summary, get_tasks_analytics |
| Memory & files | user_memory, agent_workspace, assistant_files |
| Email campaigns | list_email_campaigns, create_email_campaign_draft |
| Images | generate_image |
| Receivables | manage_receivables |
| Usage & plans | get_usage, get_usage_analytics, check_action_permission, get_available_plans |
| API keys | list_api_keys, create_api_key, update_api_key, revoke_api_key, delete_api_key, get_api_key_stats |
More than one account
One key is the common case and nothing changed for it: set COGNITIONDESK_API_KEY and
you are done — it is simply the account named default.
If you manage several CognitionDesk accounts (a studio plus the satellites that run on the platform), put them all in one server instead of running one instance per account:
// in the server's env
COGNITIONDESK_ACCOUNTS={"studio":"key_aaa","vendear":{"key":"key_bbb","url":"https://api.cognitiondesk.com"}}
COGNITIONDESK_ACTIVE_ACCOUNT=studio // optional; defaults to the first one
A value is either the key on its own, or {"key": "...", "url": "..."} when that account
lives on a different backend than the rest.
get_connection_statuslists what the keyring holds, which account is active, and which backend it talks to. Nothing ever prints a key — only names.use_account({ name })switches the active account for everything that follows.- Every read tool takes an optional
accountto look at another account for that one call, without switching. Writes always use the active account, no exceptions. - Every response begins with
account: <name>— at the top, not the end, because the failure this prevents is reading the right answer from the wrong account.
Two servers against the same platform is the thing to avoid: it duplicates ~110 tools in
every session, both answer 200, and neither says which account you are in.
The keyring is inert in remote mode: there each request brings its own key in
x-api-key, and anaccountargument is refused rather than silently ignored.
Configuration
| Env var | Default | Description |
|---|---|---|
COGNITIONDESK_API_KEY |
— | Your personal API key (required unless COGNITIONDESK_ACCOUNTS holds one; without any key the server starts in offline mode and every tool returns a clear error instead of failing silently). Equivalent to a keyring with a single account named default. |
COGNITIONDESK_ACCOUNTS |
— | Keyring of several accounts, as JSON: {"name":"<key>"}, or {"name":{"key":"<key>","url":"<backend>"}} for an account on a different backend. See More than one account. |
COGNITIONDESK_ACTIVE_ACCOUNT |
first in the keyring | Which account the process starts on. use_account changes it at runtime. |
COGNITIONDESK_URL |
https://api.cognitiondesk.com |
Backend URL. Only override for local development. An account's own url wins over this. |
COGNITIONDESK_TIMEOUT_MS |
20000 |
Per-request timeout for every call. A timeout means the request was still running, not that the backend is down — get_connection_status tells the two apart in under a second. |
COGNITIONDESK_TRY_TIMEOUT_MS |
60000 |
Timeout for try_assistant only (it runs the real model). The tool's timeoutSec argument overrides it per call. No timeout unblocks a turn that calls a frontend tool (ask_user): /try has no client to answer it, so the backend waits until its own 300s limit. That turn works in a real channel; rehearse the turns before it. |
Only for hosting the remote (node dist/http.js); a local client needs none of these:
| Env var | Default | Description |
|---|---|---|
MCP_HTTP_PORT |
5310 |
Port the HTTP server listens on. |
MCP_HTTP_HOST |
0.0.0.0 |
Bind address. |
MCP_HTTP_SESSION_TTL_MS |
2700000 (45 min) |
Idle time before an orphaned session is swept. A client that comes back later gets 404 and re-initializes. |
Do not set COGNITIONDESK_API_KEY when hosting the remote: each request carries its
own key and there is no fallback to the process environment, so a key there would only
mislead whoever reads the container's env.
How access actually works
Everything goes through /platform-api/* authenticated with your key, so your key is the boundary — not this package:
- Scopes. A key carries scopes (
assistants:*,workflows:*,wizard:*,usage:read,inventory:read,inventory:write,schedules:readby default —DEFAULT_API_KEY_SCOPESin the backend'smiddleware/validateApiKey.js; this list drifted from the code for a while, socognitiondesk_docsnow checks it on every run, see Docs → Permissions). A tool whose scope your key lacks answers403, and that's the key's doing, not a bug here.apikeys:manageis not in the defaults, so a key cannot mint keys unless you explicitly grant it. - Assistant scoping. If your key is restricted to specific assistants (
allowedAssistantIds), tools only reach those. - Plan. On a free plan the backend answers
403 PLAN_REQUIRED— upgrade at cognitiondesk.com/pricing. - Metering. Every call counts toward your plan's quota, and running workflows or ingesting knowledge consumes credits.
get_usagetells you where you stand.
Use your own key, never a borrowed one: a key issued by someone else usually reaches all of their assistants, including the ones answering real customers.
License
MIT © Mounaji