cos-link-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cos-link-mcp propose dinner next week to my partner's CoS"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CoS Link for Grok Bot
Your Grok Bot Chief of Staff should be able to coordinate with your partner's Grok Bot Chief of Staff.
CoS Link proposes a communication protocol specifically for Grok Bot Chiefs of Staff across separate user accounts. Its working reference implementation provides owner-approved pairing, limited capability grants, shared messages, and revocation. Each CoS keeps its owner's computer, credentials, and private sources local.
Built by Autodev Team for the Grok Bot use case. The Grok Build and Cursor plugins provide distribution and MCP integration paths; the proposal asks the platform to add native Grok Bot identity and delivery hooks. No Slack account is required. Not affiliated with or endorsed by xAI or Cursor.
System design · Protocol · Native feature proposal · Plugin setup · Data handling · Security
Submitted for review: Grok Build marketplace PR #707 and Cursor publisher application. Both await review; no accepted marketplace listing is claimed.

A shared plan, separate authority
“Find a time for dinner with my partner next week.”
Your Grok Bot CoS proposes a task to your partner's approved Grok Bot CoS. Their CoS checks their calendar locally and returns candidate windows. One organizer prepares the result for the appropriate owner decision. Private event titles, calendar credentials, and unrelated context do not belong in the exchange.
The current release coordinates task proposals and availability windows. It does not execute calendar writes or claim that a peer can approve an action on your behalf.
flowchart LR
A[Your CoS] <-->|MCP client| S[CoS Link\nauthentication · grants · mailbox]
B[Their CoS] <-->|MCP client| S
O[Owners] -->|pair · scope · revoke| S
C[A2A clients] <-->|A2A 1.0 profile| S
S --> D[(Durable SQLite storage)]Related MCP server: Agent Channel
What works
Independent owner and agent credentials, with only hashed tokens stored in the mailbox database.
Intended-recipient invitations, single-use codes, independent acceptance, and inviter verification before activation.
Asymmetric capability grants, permission changes, per-owner pause/resume, revocation, and agent credential replacement.
Addressed, structured messages with task correlation, expiry, turn budgets, persistent cursors, and idempotent retries.
An owner console showing contacts, shared messages, and connection activity.
An MCP stdio client that talks to a separately hosted service over HTTPS; loopback HTTP is available for development.
An explicit A2A 1.0 JSON-RPC profile with authenticated discovery, task messages, retrieval, and cancellation. See the exact supported surface.
Tests exercise owner/agent authority, consent, replay and conflicting keys, concurrency, restart recovery, payload validation, unauthorized task access, revoked disclosure, unrelated-owner directory isolation, and A2A/MCP behavior. A separate live demo starts two real MCP processes against a local HTTP service. The installed Grok Build CLI also validates the manifest and completes an MCP initialization and tool-discovery handshake. See verification evidence and its limits. These checks use synthetic accounts; they do not prove native Grok Bot identity, wakeups, or vendor certification.
Run locally
Requires Python 3.11+ and uv.
git clone https://github.com/logan-robbins/cos-link.git
cd cos-link
uv sync --locked
uv run cos-link init
uv run cos-link create-owner --name Alice --credentials-out local/alice.json
uv run cos-link create-owner --name Bob --credentials-out local/bob.json
uv run cos-link serveOpen http://127.0.0.1:8080. Each owner opens their own console with the owner_token from their private credential file. Share the intended owner's id, create an invitation, have that owner accept it, and verify their identity before activating the contact. The console keeps the key only in the current tab's memory.
Credential files and the SQLite database live under the ignored local/ directory. The operator must distribute each owner's credentials securely. Never commit these files or paste an owner/admin key into an agent chat. Agent hosts receive only their own agent_token.
For a fast demonstration with no real accounts:
uv run python examples/two_owners.py
uv run python examples/live_mcp.pyThe first example exercises the HTTP application. The second launches a temporary HTTP service and two MCP stdio clients, then verifies identities, a request, retries, inbox retrieval, task status, and revocation.
Connect your agent
Install the cos-link-mcp entry point in the host environment, then configure a standard MCP server:
{
"mcpServers": {
"cos-link": {
"command": "cos-link-mcp",
"env": {
"COS_LINK_URL": "https://your-mailbox.example",
"COS_LINK_TOKEN": "<this owner's agent credential>"
}
}
}
}Use the packaged integration instructions for Grok Build or Cursor. Their manifests use environment placeholders, never real secrets. The command must already be installed and accessible to the host; the plugin does not silently install runtimes or execute a remote installer.
Ask the agent to list contacts, submit a task.propose message, and poll the inbox. Persist cursors after processing and reuse the same idempotency key on retries. A host routine can schedule polling. MCP does not, by itself, wake an idle Grok Bot. A supported native wake mechanism remains part of the platform proposal.
Deploy a shared mailbox
Use one service instance, persistent storage, a private data directory, and an HTTPS reverse proxy. Set COS_LINK_PUBLIC_URL to the service's external HTTPS origin so the Agent Card advertises the right endpoint. Restrict provisioning access and add rate limits at the proxy. The service operator can read shared payloads; there is no end-to-end encryption claim.
A container recipe is included:
docker build -t cos-link .
docker volume create cos-link-data
docker run --rm -v cos-link-data:/data cos-link init
docker run --rm -v cos-link-data:/data cos-link create-owner --name Alice --credentials-out /data/alice.json
docker run --rm -p 127.0.0.1:8080:8080 -v cos-link-data:/data cos-linkRetrieve and distribute credential files securely through the operator's deployment workflow. Configure HTTPS before exposing the service remotely. The Dockerfile is a deployment recipe; local Python verification does not constitute a production deployment or container runtime test.
Why publish this
Grok Bot documents internal Bot handoffs and copied templates. Trusted cross-account contacts need additional product primitives: verified owner/Bot identity, bilateral permissions, authenticated delivery and wakeups, and approval provenance.
This repository makes that discussion concrete. The native feature proposal describes those primitives; the submission research distinguishes the Grok Build marketplace, Cursor publisher applications, Grok Bot templates, and community feedback routes. Marketplace submission or acceptance would distribute the integration, not implement native account peering.
Verify and contribute
uv run ruff check .
uv run pytest -q
uv run python examples/two_owners.py
uv run python examples/live_mcp.py
uv buildSee CONTRIBUTING.md, SECURITY.md, and the Apache 2.0 license.
Available Tools
8 toolscancel_taskB
Cancel a non-terminal task using a retry-safe idempotency key.
Inputs: task_id (required), idempotency_key (required). Returns: object
get_identityA
Return the authenticated CoS Link owner, role, and public account metadata.
Inputs: no named parameters. Returns: object
get_taskC
Read the current durable state of a coordination task.
Inputs: task_id (required). Returns: object
list_contactsB
List owner-approved CoS relationships visible to this credential.
Inputs: no named parameters. Returns: object
list_tasksB
List polling-based coordination tasks visible to this credential.
Inputs: limit, relationship_id. Returns: object
read_inboxA
Poll accepted peer messages. Persist next_cursor before the next poll.
Inputs: limit, cursor. Returns: object
send_coordinationC
Submit one structured message within the relationship's current grant.
Inputs: payload (required), capability (required), idempotency_key (required), relationship_id (required), +4 more. Returns: object
update_task_statusC
Record processing outcome; this never represents an owner's external approval.
Inputs: status (required), task_id (required), idempotency_key (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource/action: identity, contact listing, inbox polling, task listing/reading/canceling, coordination sending, and status updating. No two tools appear to do the same thing, and boundaries are clear.
All names follow a consistent snake_case verb_noun pattern (get/list/read/send/cancel/update). The convention is predictable across the entire set.
Eight tools is a well-scoped count for a coordination/communication server, covering identity, contacts, inbox, and task lifecycle without obvious redundancy.
Core workflows for identity, relationship listing, inbox polling, task read/cancel/update, and coordination sending are present. Minor gaps exist, such as no explicit create_task or inbox acknowledgement/delete, but likely workable via existing operations.
Maintenance
Related MCP Connectors
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
End-to-end encrypted messaging and work coordination for autonomous AI agents.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceExposes stdio MCP tools that let an AI coding agent delegate bounded tasks to a peer agent, exchange updates and cancellations, and send non-blocking messages over an authenticated local WebSocket hub. It carries routing IDs, mailbox durability, and a peer-message notification channel so independent sessions can coordinate work.-
- AlicenseNot gradedqualityCmaintenanceEnables AI coding sessions across multiple agent CLIs to share one identity and inbox, hand off tasks, send encrypted files and conversation transcripts, publish living documents, and coordinate approvals through hooks and MCP tools.24 npmMIT
- AlicenseAqualityAmaintenanceWalkie-talkies for AI coding agents: Claude Code, Codex, Cursor and any MCP client message other developers' agents directly, peer to peer over HyperDHT and end-to-end encrypted. No server, no account. Pair once with a 6-digit verify code; offline peers get messages through a sealed mailbox on the DHT. Tools: send_message, read_inbox, list_messages, list_peers, get_status.5Apache 2.0
- AlicenseNot gradedqualityCmaintenanceConnects MCP hosts to a NodeAgentServer and local NodeAgentClient over stdio, enabling self-service bot registration with admin-approved capability grants, terminal discovery, idempotent job submission, desktop observation and remote control, inter-bot messaging and group chat, fleet-shared knowledge and skills, and authorized Git credentials. Ships configuration generators for Hermes, DSBot, Cursor, Codex, and Claude Code, plus multi-account routing.AGPL 3.0