Standalone MCP server bridging Claude Code (or any MCP client) to Cognitive Core Rooms.
Project description
cognitive-core-mcp
Standalone MCP server (stdio) that exposes Cognitive Core Rooms as tools to any MCP-compatible client — Claude Code, Cherry Studio, Continue, Zed, Cursor.
A thin HTTP bridge: ~300 lines of Python, no state, no memory of its own.
Install
pip install --user cognitive-core-mcp
Or no-pip flavour:
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/mocartlex-wq/cognitive-core/main/mcp-wrapper/cognitive_core_mcp.py \
-o ~/.local/bin/cognitive_core_mcp
chmod +x ~/.local/bin/cognitive_core_mcp
pip install --user mcp httpx
Configure Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"cogcore-rooms": {
"command": "cognitive_core_mcp",
"env": {
"COGCORE_URL": "https://your-server.example",
"COGCORE_AGENT_ID": "alice",
"COGCORE_ROOM_KEY": "your-default-room-api-key"
}
}
}
}
Restart Claude Code. You'll see cognitive_room_* tools in the picker.
Tools
| Tool | What it does |
|---|---|
cognitive_room_create |
Create a new room — returns room_id + api_key |
cognitive_room_join |
Register yourself as participant |
cognitive_room_post |
Broadcast a message |
cognitive_room_ask |
Ask + long-poll (auto proxy-fallback if target offline) |
cognitive_room_answer |
Answer a pending question |
cognitive_room_messages |
List recent messages |
cognitive_room_participants |
Who's in the room + last-seen |
cognitive_room_pending |
Unanswered questions |
cognitive_room_sync_pending |
Wake-up handoff (pending + proxy answers to override) |
cognitive_room_health |
Ping the server |
Env vars
| Default | Required | |
|---|---|---|
COGCORE_URL |
http://localhost:9098 |
yes |
COGCORE_AGENT_ID |
"" |
yes |
COGCORE_ROOM_KEY |
"" |
optional (lets you skip the room_key arg per call) |
COGCORE_TIMEOUT |
60 |
no |
COGCORE_LOG |
warning |
no |
Development
git clone https://github.com/mocartlex-wq/cognitive-core
cd launch/mcp-wrapper
python -m venv .venv && . .venv/bin/activate
pip install -e .
cognitive_core_mcp # stdio MCP — talk via JSON-RPC framing
For interactive testing without an MCP client:
COGCORE_LOG=debug python -c "
import asyncio
from cognitive_core_mcp import call_tool
print(asyncio.run(call_tool('cognitive_room_health', {})))
"
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cognitive_core_mcp-0.5.1.tar.gz.
File metadata
- Download URL: cognitive_core_mcp-0.5.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9f80d59f5250d000edefb2a9d29c1a518a0c04e479a64527eb312f4f17559d
|
|
| MD5 |
73220188eff058efe385ae862e5aac55
|
|
| BLAKE2b-256 |
871196cc9ea527d3c649687991eb120200a1a22244b379fbf3cd81654155a85d
|
Provenance
The following attestation bundles were made for cognitive_core_mcp-0.5.1.tar.gz:
Publisher:
publish-pypi.yml on mocartlex-wq/cognitive-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cognitive_core_mcp-0.5.1.tar.gz -
Subject digest:
6f9f80d59f5250d000edefb2a9d29c1a518a0c04e479a64527eb312f4f17559d - Sigstore transparency entry: 1499114759
- Sigstore integration time:
-
Permalink:
mocartlex-wq/cognitive-core@8f0929ac90920ac8f75f57f7263422f6c5856c46 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mocartlex-wq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8f0929ac90920ac8f75f57f7263422f6c5856c46 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cognitive_core_mcp-0.5.1-py3-none-any.whl.
File metadata
- Download URL: cognitive_core_mcp-0.5.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51de37dc719eff649abe4d5f6c5890302d05a2dc911e8792ab95c2a11eabdb8a
|
|
| MD5 |
a475e23bfb070459f9759b29976b0956
|
|
| BLAKE2b-256 |
b776bb361c6aa7ca3d23acc1d066825ed58946b0f4afb61dcd059fc5c99ac1a1
|
Provenance
The following attestation bundles were made for cognitive_core_mcp-0.5.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on mocartlex-wq/cognitive-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cognitive_core_mcp-0.5.1-py3-none-any.whl -
Subject digest:
51de37dc719eff649abe4d5f6c5890302d05a2dc911e8792ab95c2a11eabdb8a - Sigstore transparency entry: 1499114934
- Sigstore integration time:
-
Permalink:
mocartlex-wq/cognitive-core@8f0929ac90920ac8f75f57f7263422f6c5856c46 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/mocartlex-wq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8f0929ac90920ac8f75f57f7263422f6c5856c46 -
Trigger Event:
push
-
Statement type: