
Timps Swarm
io.github.Sandeeprdy1729由 GitHub 账号 Sandeeprdy1729 发布v2.2.3更新于 Oct 24, 2026
161 AI agents for code gen, health, AI/ML, infra, India-stack. One command.
概览
本地 MCP 服务器,提供 161 个专业 AI 代理,覆盖编码、安全审计、DevOps、数据与电脑健康,可并行调度。
- 可以做什么
- 调度专业代理完成代码生成、评审、重构、测试以及 API 与数据库设计
- 执行安全审计、依赖与合规检查,以及基础设施和流水线诊断
- 运行多步骤软件交付流水线,并把多步目标委派给并行子代理
- 生成调研、文档、监控与云成本相关产出
- 查询蜂群自身状态:列出代理、列出 LLM 提供方、查看工具与内核状态
- 执行电脑健康检查,涵盖系统、网络、电池、备份与隐私
- 适用场景
- 当你希望编码助手把审计、重构、Schema 或 API 设计、多代理流水线等较大任务交给本地代理群处理,而不是全在一个对话里完成时适用。若你想在多个 IDE 中把这些代理注册为子代理,也适合使用。
- 运行要求
- 通过 npm(npx timps-swarm mcp)在本地运行,需要 Node.js。完整功能需要可访问的 FastAPI 后端(本地或通过 TIMPS_API_URL);没有后端时 npm 代理只能转发调用。需要 LLM 提供方:GEMINI_API_KEY、ANTHROPIC_API_KEY、OPENAI_API_KEY 或 GROQ_API_KEY,或通过 OLLAMA_HOST 使用本地 Ollama。可选 REDIS_URL 保存状态、TIMPS_AUTH 启用 API 密钥认证。内存建议至少 8 GB。
安装
在 SourceWeft 中
- 打开 控制台中的 Timps Swarm,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
One install-mcp command puts 161 AI specialists into every coding tool you use — as parallel sub-agents, not just MCP tools.
[npm] [License: MIT] [Python 3.11+] [MCP Protocol] [Discord]
Quick Start · Sub-agents · 161 Agents · MCP Setup · CLI · Architecture
[TIMPS Swarm Parallel Agent Demo] 4 agents dispatched in parallel vs sequential — 3× speedup (64s vs 192s)
What it does
- Security audit any repo in 30 seconds —
npx timps-swarm audit ./finds CVEs, hardcoded secrets, and OWASP issues. No backend, no config, no API key. - 161 specialist agents in every AI tool — one
install-mcpcommand writes the MCP config for 9 IDEs (Claude Code, Cursor, Windsurf, Continue, Aider, Cline, Zed, VS Code, Gemini, Codex, Amp, Warp) and registers every agent as a native sub-agent so Claude Code / Cursor / Codex can dispatch them in parallel viaTask(subagent_type=...). - Local-first, BYOK — runs on Ollama with zero API cost; plug in Gemini/Anthropic/OpenAI/Groq when you want more power.
- Works without the Python backend —
npm install -g timps-swarmships a Node.js MCP stdio proxy (cli/lib/mcp-proxy.js) that talks to any running FastAPI server (local or remote viaTIMPS_API_URL). The Python repo is optional.
Quick Start
Hand this repo to any coding agent and it will set itself up.
SETUP.mdis written as an instruction set (not just docs) — when a user clones the repo and tells Claude Code, opencode, Codex, Cursor, Windsurf, or any other agent to "read SETUP.md and set me up", the agent installs the backend, registers thetimps-swarmMCP server for whatever tool it's running in, and starts dispatching the 161 specialist agents in parallel.
Then wire it into your coding agents:
install-mcp auto-detects every AI tool on your machine and:
- Writes the
timps-swarmMCP server entry into every detected IDE config (with an explicitenv:block forwardingANTHROPIC_API_KEY,OPENAI_API_KEY,GEMINI_API_KEY,GROQ_API_KEY,TIMPS_API_URL,OLLAMA_HOST,REDIS_URL). - Writes one sub-agent
.mdfile per TIMPS tool into~/.claude/agents/,./.claude/agents/, and~/.codex/agents/.
Restart your tool — 161 agents appear as MCP tools and as parallel sub-agents.
Run without installing (zero setup):
What install actually does
install-mcp is the only command you need:
By default this writes:
- MCP server entries into 9 IDE config files (one entry per IDE, all pointing at
npx timps-swarm mcp). - 161 sub-agent
.mdfiles into~/.claude/agents/,./.claude/agents/,~/.codex/agents/(one per MCP tool) so Claude Code'sTask(subagent_type="timps_kubernetes_navigator"), Cursor Composer, and Codex can dispatch them in parallel.
All writes are idempotent (re-running updates the existing file) and reversible via uninstall-mcp (which only removes the timps-swarm key and the timps-*.md files — your other config is untouched).
The killer commands
MCP integrations
Manual config snippets (all tools)
install-mcp writes the snippet below into each IDE config. The env: block forwards whichever API keys you have set in your shell; it's optional (the IDE usually inherits env, but explicit is safer for sandboxed hosts).
Claude Code — ~/.claude/mcp.json
Cursor / Windsurf / Gemini CLI / Codex CLI / Amp — same format as above, different path.
VS Code / Cline / Roo Code / GitHub Copilot — .vscode/mcp.json
Continue — ~/.continue/config.json
Aider — ~/.aider.conf.yml
Zed — ~/.config/zed/settings.json
Goose — ~/.config/goose/config.yaml
GitHub Actions — reusable workflow
LLM providers
Tries providers in priority order, uses the first available one.
The 161 agents — full list
The MCP server exposes 161 specialist agents across 9 categories. Every one is also registered as a native Claude Code / Cursor / Codex sub-agent.
The Self-Critic Agent is the most valuable one — it scores any output 1–10 and re-runs the originating agent until the threshold is met, closing the quality loop across the entire swarm.
The 161 includes Phase 3 (12 priority), Phase 5 (7 more), Phase 6 nextgen (21 — security/DevOps/MLOps/emerging), Phase 7 (32 — India verticals, compliance, content, sales/voice, research), and
timps_batchfor parallel delegation. Thesrc/tool_connectorsmodule has a separateTOOLSdict (24 IDE config shortcuts —claude_code,cursor, etc.) used at runtime bytimps_connect_toolsandtimps_tool_status; those are not part of the 161.
CLI
If timps-swarm mcp is invoked but no Python repo is on disk, it transparently falls back to the bundled cli/lib/mcp-proxy.js — a Node.js JSON-RPC 2.0 stdio proxy that forwards every tool call to ${TIMPS_API_URL}/mcp/tools/call. So npm install -g timps-swarm is enough to get a working MCP server, as long as a FastAPI server is reachable.
Architecture
Three transport paths converge on the same dispatch table:
- Python MCP stdio (
mcp_server/server.py) — full MCP sampling, in-process, 161 tools. Used when the Python repo is on disk. - Node.js MCP stdio proxy (
cli/lib/mcp-proxy.js) — pure stdio JSON-RPC 2.0 that proxiestools/list+tools/callto a running FastAPI server. Used when only the npm package is installed (no Python repo). - FastAPI REST + WebSocket (
src/main.py) —/swarm/run,/agents/*,/health,/ws, plus the bridge endpoints/mcp/tools(catalogue) and/mcp/tools/call(dispatch).
Layer 1 — Computer Manager (src/layer1_computer_manager.py) — isolated working directories, CPU/memory/disk caps per agent.
Layer 2 — Swarm Bridge (src/layer2_swarm_bridge.py) — agent lifecycle: spawning, team formation, LangGraph DAG execution, result collection.
Layer 3 — CLI (src/layer3_swarm_cli.py) — give_work.py and the npm CLI.
REST API
Full interactive docs at http://localhost:8000/docs when the server is running.
Training custom adapters
The Code Generator uses TIMPS-Coder — a 0.5B model with 20 LoRA adapters, one per bug class. Add examples and push — GitHub Actions trains new adapters automatically.
Set HF_TOKEN and HF_REPO_ID in repo secrets. The pipeline merges your data, trains 20 adapters in parallel on Apple Silicon (MLX), benchmarks, and publishes to HuggingFace.
The 20 bug-class adapters: java_npe · java_ioob · java_concurrent · python_keyerror · python_typeerror · python_recursion · python_async · python_logic · javascript_null · javascript_scope · javascript_async · cpp_memory · cpp_bounds · go_routine · rust_borrow · sql_injection · xss_vuln · auth_bypass · performance_slow · api_design
Hardware
Security
API key auth is off by default. Enable when sharing across a team:
Keys stored as SHA-256 hashes in ~/.timps/.secrets (chmod 600).
Contributing
PRs welcome against main. Conventional commits, please.
make testis currently a no-op —tests/is empty. Existing runnable test scripts are top-level (python3 mcp_server/test_server.py,python3 test_computer_allocation.py). Add atests/directory and wire it intopyproject.tomlbefore relying on pytest.
Lint: ruff check . (configured in pyproject.toml, no make lint target). Typecheck: none configured. Python ≥ 3.10, CI pins 3.11.
Built on TIMPS-Coder — a 0.5B model fine-tuned with 20 LoRA adapters for specific bug patterns.
来源:README.md,提交 c895066
工具
0版本历史
1- v2.2.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分