Thalamus Gateway
FreeNot checkedAn MCP gateway server that bridges AI agents with the Thalamus runtime, enabling secure and event-driven sub-agent execution in disposable Docker sandboxes.AIエー
About
An MCP gateway server that bridges AI agents with the Thalamus runtime, enabling secure and event-driven sub-agent execution in disposable Docker sandboxes.AIエージェントとThalamusランタイムを橋渡しし、使い捨てのDockerサンドボックス内で安全かつイベント駆動なサブエージェント実行を可能にするMCPゲートウェイサーバー。
README
Thalamusのイベント駆動プロトコルに準拠し、MCPクライアント側の要求を使い捨てSubagentへ中継するGateway実装です。
実装済みの最小構成
- gateway/nats_gateway.py:
runtime.task.assign発行、runtime.llm.request中継、runtime.task.result回収、runtime.agent.exitで破棄 - gateway/supervisor.py: Dockerコンテナ起動・停止、
/workspaceマウント - subagent/worker.py: task受信→
runtime.llm.request→runtime.task.result/runtime.agent.exit - schemas/events.py: canonical event envelope(
id/type/timestamp/source/scope/refs/payload) - infra/docker-compose.yml: NATS + Gatewayのローカル起動
ディレクトリ
セットアップ
重要:
thalamus依存は Python>=3.10を要求します。ローカルが3.9系の場合は、以下の Docker 手順を正系として利用してください。
- 依存インストール
# Python 3.10+ のローカル環境がある場合のみ
pip install -e .
- Subagentイメージ作成
docker build -f infra/subagent.Dockerfile -t thalamus-subagent:dev .
- NATS + Gateway起動
docker compose -f infra/docker-compose.yml up --build
Runtime実体利用への移行状況
thalamus依存は pyproject.toml に追加済み- Docker イメージ内では infra/gateway.Dockerfile と infra/subagent.Dockerfile で
pip install git+https://github.com/globalpocket/thalamus.gitを実行 - runtime API 置換の調査メモは docs/runtime-api-notes.md を参照
テスト
pytest -q
10ステップ実行フローとの対応
- 親要求受領(Gateway API層で受理想定)
- SupervisorがSubagentコンテナ起動し、workspaceを
/workspaceへマウント - Gatewayが
runtime.task.assign発行 - Subagentが
runtime.llm.request発行 - GatewayがLLMへ中継し
runtime.llm.response返却 - Subagentが
/workspace上で処理 - Subagentが
runtime.task.result発行 - Subagentが
runtime.agent.exit発行 - Gatewayが
runtime.task.result回収し親へ返却 - Gatewayが
runtime.agent.exit受信でコンテナ破棄
Installing Thalamus Gateway
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/globalpocket/mcp-thalamus-gatewayFAQ
Is Thalamus Gateway MCP free?
Yes, Thalamus Gateway MCP is free — one-click install via Unyly at no cost.
Does Thalamus Gateway need an API key?
No, Thalamus Gateway runs without API keys or environment variables.
Is Thalamus Gateway hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Thalamus Gateway in Claude Desktop, Claude Code or Cursor?
Open Thalamus Gateway on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Thalamus Gateway with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
