Legion Demo
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., "@Legion Demosay hello with the current time"
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.
legion-demo
Live demo agent for the 图灵星球 Agent Legion platform — connect over MCP and ask it about the platform.
A member agent of 图灵星球 Agent 军团, generated from agent-template with Copier. Run copier update to pull future template changes (your code is preserved; conflicts come out as markers to resolve).
Setup checklist
Install & run locally → Run the MCP server (
poetry install, connect Claude).Push to GitHub as its own repo — run from inside this folder so the repo root is the agent:
git init && git add -A && git commit -m "Scaffold from agent-template" gh repo create legion-demo --private --source . --push(If your deploy later says "root only contains subdirectories", you pushed a parent folder — redo this from inside the agent folder.)
Fleet auto-sync (optional but recommended) → grant the bot access.
Deploy (optional) → Deploy remotely.
Related MCP server: Sentinel Core Agent
Layout
agent.manifest.yaml— the instruction card: toolchain, paths, and commands.config.py— THE one config file: every runtime knob (transport, port, model) plus the checklist of env vars/secrets a deployment needs. Changing model or platform later = read this one file.api/— your business logic (replace the placeholderrun();say_hi()is a working example).mcp_server/— one process, two surfaces over/api: an MCP server at/mcp(for Claude) and a REST API at/api(FastAPI, for humans/other services). Local runs use stdio (MCP only); deployed runs serve both over HTTP.tests/— smoke tests..github/workflows/review.yml— thin pointer to the central review flow.
Run the MCP server & connect Claude
poetry install # once
# register with Claude (run from the repo root; stores absolute paths):
claude mcp add legion-demo -- poetry -C "$(pwd)" run python "$(pwd)/mcp_server/server.py"Then in Claude, ask it to call the tool_say_hi tool — it replies with this server's timezone and current time:
hello from PDT 2026-07-03 15:04:05: hiAdd your own tools by writing functions in api/ and exposing them with @mcp.tool() in mcp_server/server.py.
Deploy remotely (connect from anywhere)
The same server switches to HTTP mode automatically when the platform injects a PORT (Railway, Render, Fly.io — any always-on host; serverless platforms like Vercel don't fit this Python server). No code change needed:
Make sure
poetry.lockis committed (created at scaffold time; builders detect a Poetry project by it).Push this repo to GitHub and create a project on your platform (e.g. Railway → Deploy from GitHub repo). The start command ships in
railpack.json— Railway picks it up with zero configuration; the injectedPORTflips the server to HTTP, serving MCP at/mcp.Your deployed app serves both surfaces (replace
<your-app-url>with your real deployment URL):MCP at
https://<your-app-url>/mcp— connect Claude from any machine. The-cloudsuffix keeps this remote registration separate from your local stdio one (same server name would clash):claude mcp add --transport http --scope user legion-demo-cloud https://<your-app-url>/mcpThen in a new Claude session:
/mcpshowslegion-demo-cloudconnected → ask it to calltool_say_hi→ the time comes back in the server's timezone (e.g. UTC on Railway), proof it's the remote one.REST API at
https://<your-app-url>/api/...— for humans, scripts, or other services:curl https://<your-app-url>/api/say_hi # {"message":"hello from UTC …: hi"}Add more endpoints in
mcp_server/server.py(build_http_app), reusing your/apilogic.
Everything configurable about the deployment (transport, port, model, which secrets to set) is documented in config.py — that's the only file to read when you change platform or model.
⚠️ A deployed server is public: anyone with the URL can call your tools. Fine for the harmless starter tools; add auth before exposing tools that touch real data.
Fleet auto-sync (keep this repo on the latest template)
This agent can be tracked by the fleet migration bot: when a new agent-template version ships, the bot opens a PR here bumping you to it (you review + merge — never auto-merged). Two things must be true:
You're listed in the fleet's
members.yaml. Your manifest carriesfleet.register(set by the scaffold question) — when it'strue, your first push to GitHub asks the platform to open the members.yaml PR for you; an admin merges. Flip the manifest key anytime. Manual fallback (scripts/register-in-fleet.sh), or ask the admin to add:- name: legion-demo repo: <owner>/legion-demoThe platform's GitHub App can access this repo. ⚠️ Registration alone is NOT enough — a GitHub App can't grant itself access; the owner of this repo's account grants it once. This same one-time install also powers platform AI reviews (
/reviewon your PRs — see below), so it's worth doing even if you don't care about template syncs:GitHub → Settings → Applications → Installed GitHub Apps →
turing-fleet-bot→ ConfigureUnder Repository access: add this repo, or choose All repositories (simplest for a personal account — the bot only ever touches repos in
members.yaml).On an org you don't administer, ask the platform admin to grant it.
If a sync run fails with "Not Found" on your repo, it's always #2 — the App hasn't been granted access yet.
Free AI review on your PRs (platform-paid)
Comment /review on any pull request in this repo and the platform's Claude posts a security review — paid for by the platform, advisory only (it never blocks; your gate decides).
command | what it does |
| security review (the default) |
| other review lenses |
| full list + your remaining weekly quota |
Requirements: your repo is in members.yaml with a review allowance, and the platform App is installed (step 2 above). GitHub doesn't autocomplete third-party commands — just type it as a normal comment.
How review works
Open a pull request → the review flow from policies reads the manifest, installs, runs the tests, lints, scans for security issues, lets the AI reviewer advise — and the gate (the hard checks) decides pass/fail. See the platform overview for the full picture.
This server cannot be deployed
Maintenance
Related MCP Connectors
POC MCP server. Tool say_hello returns 'Welcome' (agent -> MCP -> API path).
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- FlicenseAqualityFmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.54-
- FlicenseNot gradedqualityDmaintenanceEnables file system operations, web scraping, and AI-powered search through MCP tools for use by LLM agents.1-

Scout MCP Serverofficial
AlicenseAqualityDmaintenanceEnables AI agents to interact with Scout Live platform capabilities through standardized MCP primitives, including tools for app management, deployment, and logging.612 npmMIT- -licenseNot gradedqualityBmaintenanceEnables users to interact with a set of tools via an LLM agent, allowing natural language requests to be processed and executed through the MCP server.-