AI Skill Hub 推荐使用:MCP工具 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
MCP工具:用于执行代理式AI工作流的执行器,突出其在AI代理中的应用价值。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP工具:用于执行代理式AI工作流的执行器,突出其在AI代理中的应用价值。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/riteshverma/s18
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp--": {
"command": "npx",
"args": ["-y", "s18"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP工具 执行以下任务... Claude: [自动调用 MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp__": {
"command": "npx",
"args": ["-y", "s18"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
s18_engine import surface./runs requests via integration adapters.docs/architecture/GBRAIN_COMPATIBILITY.md.codex, claude, gemini) with persisted state and SSE output eventsconfig/ (Ollama, llama.cpp, models, RAG, agent, REMME)---
S18 uses uv and pyproject.toml as the canonical local setup:
uv sync
Keep in .env:
S18_PROFILE=local-laptop-gemma
OLLAMA_BASE_URL=http://ollama:11434
Then:
docker compose --env-file .env.docker.ollama --profile ollama up --build -d
Persistent state is stored on host-mounted folders:
data/memory/config/mcp_servers/faiss_index/---
This repo now includes a dedicated Docker build target for CI:
docker build --target ci -t s18share-ci .
docker run --rm s18share-ci
The CI target uses pinned dependencies from requirements-ci.txt (exported from uv.lock) and runs a quick compile sanity check.
---
GBrain runs Bun-first and can be wired as an MCP server (stdio). For the implemented mapping model and rollout plan, see docs/architecture/GBRAIN_COMPATIBILITY.md.
One-time local setup (from repo root):
git clone https://github.com/garrytan/gbrain.git gbrain
cd gbrain && bun install && bun run src/cli.ts init && cd ..
Verify MCP registration:
uv run python scripts/test_gbrain_mcp_registration.py
uv run python scripts/test_gbrain_mcp_live.py
---
Use this path if you want to run code and ship features quickly.
tests/ and scripts in scripts/.Primary files:
integrations/contracts.pyintegrations/adapters/*routers/runs.pyconfig/settings_loader.pyPOST /runs accepts optional integration metadata. If omitted, S18 falls back to the default adapter (integration_id=default, workflow_id=generic, contract_version=v1).
curl -X POST "http://localhost:8000/runs" \
-H "Authorization: Bearer <supabase_access_token>" \
-H "Content-Type: application/json" \
-d '{
"query": "interpret CBC and suggest next steps",
"integration_id": "wiseai",
"workflow_id": "cdss",
"contract_version": "v1",
"source_system": "wiseai",
"external_event_id": "evt_123",
"consent_ref": "consent_abc",
"raw_payload": {"hemoglobin": 12.1, "wbc": 7.5, "platelets": 220}
}'
These examples are intentionally non-medical to demonstrate reusable core orchestration:
examples/personal_finance/ - expense triage and budget actionsexamples/travel_planner/ - itinerary and logistics planningRun either example by sending its run_payload.json to POST /runs.
| Variable | Purpose |
|---|---|
GEMINI_API_KEY | Google Gemini API key (used for agents, apps, and some MCP tools when configured) |
AUTH_ENABLED | Enable backend bearer-token verification (true/false) |
S18_AUTH_ENABLED | Docker-only override mapped to AUTH_ENABLED for this service (prevents cross-repo env collisions) |
SUPABASE_URL | Supabase project URL (used for auth verify and optional logging) |
SUPABASE_ANON_KEY | Supabase anon key (optional for frontend/public client flows) |
SUPABASE_JWT_AUDIENCE | Expected access-token aud claim for backend verification (default authenticated) |
SUPABASE_LOGGING_ENABLED | Enable request/result persistence to Supabase tables (true/false) |
SUPABASE_SERVICE_ROLE_KEY | Service role key for backend writes to Supabase tables |
Optional:
local-laptop-gemma for Ollama mode or local-llama-cpp for llama.cpp mode.legacy (best-effort MCP startup) or strict (health/readiness requires listed MCP servers).rag,sandbox for /runs with retrieval + sandbox tools)./runs background tasks (default celery).ingest).http://127.0.0.1:11434. In Docker Compose, use OLLAMA_BASE_URL=http://ollama:11434 when using the bundled Ollama service.LLAMA_CPP_BASE_URL. Use http://127.0.0.1:8080 for a host-local Python run, http://host.docker.internal:8080 when Docker API calls a host llama-server, or http://s18share-llama-cpp:8080 for the bundled Compose service.%LOCALAPPDATA%/S18Share/harness_jobs on Windows).PATH./patients/{id} and /patients/{id}/labs from that provider.EXTERNAL_MOCKEHR_BASE_URL is not set.cp .env.example .env
PowerShell:
Copy-Item .env.example .env
Set GEMINI_API_KEY in .env.
config/settings.json (created from config/settings.defaults.json if missing).config/settings.defaults.json, keep environment-specific values in config/settings.json, and prefer env vars for runtime overrides (AUTH_ENABLED, SUPABASE_*, TENANCY_*, RUN_POLL_TIMEOUT_SECONDS).config/agent_config.yaml.remme in settings.remme.gbrain in config/settings.defaults.json:enabled, dual_write, read_from_bridge, mirror_dir, server_idThe harness subsystem adds a BoringOS-style trusted runner to S18: the app can launch CLI jobs for codex, claude, and gemini, assuming those CLIs are already installed and authenticated on the host/deployed environment.
All routes are under /harness and are protected by Supabase-backed auth (require_supabase_user).
POST /harness/jobs - create a new job and queue background executionGET /harness/jobs - list jobs (supports limit)GET /harness/jobs/{job_id} - fetch one persisted job statePOST /harness/jobs/{job_id}/stop - request termination for a running jobPOST /harness/jobs/{job_id}/resume - publish a resume signal for a jobGET /harness/jobs/{job_id}/events - stream job events over SSE (with optional history replay)uv run python api.py
Or:
uv run uvicorn api:app --host 0.0.0.0 --port 8000 --reload
The app expects a frontend at http://localhost:5173 (CORS is configured for it).
---
Set in .env:
S18_PROFILE=local-laptop-gemma
OLLAMA_BASE_URL=http://host.docker.internal:11434
Then:
docker compose --env-file .env.docker.ollama up --build -d api
For best llama.cpp performance, many users run llama-server directly on the host OS or a dedicated machine instead of inside Docker. Start an OpenAI-compatible llama.cpp server with embeddings enabled, for example:
llama-server -m ./models/model.gguf --host 0.0.0.0 --port 8080 --embeddings --pooling mean
If the S18 API runs in Docker and llama.cpp runs on the host, set:
S18_PROFILE=local-llama-cpp
LLAMA_CPP_BASE_URL=http://host.docker.internal:8080
Then:
docker compose --env-file .env.docker.llama-cpp-host up --build -d api
PowerShell shortcut:
.\scripts\use-llama-cpp.ps1 -HostServer
If you prefer the bundled Compose llama.cpp service instead, use:
.\scripts\use-llama-cpp.ps1
or run directly:
docker compose --env-file .env.docker.llama-cpp --profile llama_cpp up --build -d
docker compose up --build -d api
docker compose -f monitoring/docker-compose.monitoring.yml up -d
If you want local Ollama in Docker too:
docker compose up --build -d
docker compose -f monitoring/docker-compose.monitoring.yml up -d
docs/architecture/WISE_AI_CDSS_Architecture_2026-03.mddocs/architecture/WISE_AI_CDSS_Architecture.md in wise-ai/TSAI-EAG-CapstoneUse this path if you are integrating S18 with wise-ai workflows/endpoints.
EXTERNAL_MOCKEHR_BASE_URL (or legacy WISE_MOCKEHR_BASE_URL) and verify endpoint reachability.POST /runs payloads with integration_id=wiseai, workflow_id=cdss.Primary files:
integrations/adapters/wiseai.pyconfig/integrations/wiseai_cdss_v1.jsontests/integrations/S18Share is designed to decouple external product/workflow specifics from the orchestration core. Ingress requests are normalized into a canonical run contract, then routed through an integration adapter selected by integration_id (or source_system fallback).
integrations/contracts.pyintegrations/base.py, integrations/adapters/*integrations/registry.pys18_engine/config/integrations/*.json (example: wiseai_cdss_v1.json)docs/architecture/S18_WORKFLOW_AGNOSTIC_TARGET.mdintegrations/adapters/<your_integration>.py (map raw → canonical, and canonical result → response envelope).config/integrations/<integration>_<workflow>_<version>.json for risk/response profiles and field aliases.tests/integrations/.S18 can operate as a central MCP hub for built-in and external servers.
docs/mcp/MCP_MARKETPLACE_INTEGRATION.mdGET /mcp/servers, POST /mcp/servers, POST /mcp/refresh/{server}python scripts/scaffold_mcp_server.py --name weather
The scaffold creates a ready-to-run MCP server starter in mcp_servers/custom/.
Authorization: Bearer <access_token>./auth/v1/.well-known/jwks.json) with issuer/audience checks (no backend-managed Supabase session).X-Forwarded-Authorization: Bearer <access_token>.ehr_request_log (inbound request/audit trail)ehr_clinical_result (normalized RAC/CBC/ABDM/FHIR-aligned outcome)docs/supabase_ehr_schema.sqlpython scripts/check_supabase_integration.py
This section is a cross-repo integration reference. If you are onboarding to S18 itself, start with Start Here and Quick start.
S18 is not trying to replace every graph or multi-agent library. It is a runtime layer around agentic systems: API contracts, model/provider configuration, memory/RAG, MCP servers, scheduled jobs, auth/logging hooks, and monitoring assets in one backend.
Use S18 when you need:
POST /runs contract.Use LangGraph, CrewAI, AutoGen, or similar libraries directly when your main need is the agent-planning abstraction itself and you do not need S18's backend/runtime surface. S18 can coexist with those patterns by treating them as implementation choices behind adapters or agent-loop modules.
S18Share 是一个开源的 AI 智能体运行时和编排框架,支持 Python 3.11+。该项目提供工作流无关的架构设计,集成 MCP 协议支持,并通过 Docker CI 实现自动化部署。框架核心用于构建多步骤规划和执行的 AI 系统,支持与多个外部产品和工作流的集成适配。
核心功能包括:Agent 运行时支持多步骤规划和执行、带重试和熔断机制;REMME 用户记忆系统用于提取和管理用户偏好、操作上下文和身份信息;工作流无关的合约设计,通过集成适配器将产品特定的请求规范化为标准 /runs 接口;内置 RAG、浏览器和沙箱 MCP 服务器;可选的 GBrain 记忆桥接层用于与外部系统互操作。
项目使用 uv 作为依赖管理工具和 pyproject.toml 作为配置文件。开发者需要安装 Python 3.11 或更高版本。通过运行 `uv sync` 命令完成本地依赖安装。Docker 部署方式需要配置 .env 文件,设置 S18_PROFILE 和 OLLAMA_BASE_URL 等环境变量。
本地开发:执行 `uv sync` 安装依赖,复制 .env.example 为 .env 并配置 GEMINI_API_KEY。Docker 部署:在 .env 文件中设置 S18_PROFILE=local-laptop-gemma 和 OLLAMA_BASE_URL,然后运行 `docker compose --env-file .env.docker.ollama --profile ollama up --build -d`。API 启动命令为 `uv run python api.py` 或 `uv run uvicorn api:app --host 0.0.0.0 --port 8000 --reload`。
快速开始:按照快速启动指南完成依赖安装和环境配置,然后启动 API。通过 POST /runs 端点发送运行请求,可选择集成元数据或使用默认适配器。项目提供个人财务和旅行规划两个示例工作流,开发者可通过发送 run_payload.json 到 /runs 端点来执行。代码修改位置参考项目结构,使用 tests/ 目录中的测试和 scripts/ 目录中的脚本进行验证。
主要配置文件为 config/settings.json(从 config/settings.defaults.json 生成)。环境变量包括 GEMINI_API_KEY(Google Gemini API 密钥)、AUTH_ENABLED(启用身份验证)、S18_AUTH_ENABLED(Docker 专用覆盖)等。配置优先级:环境变量 > config/settings.json > config/settings.defaults.json。支持 Supabase 认证、多租户配置、运行超时设置等参数。Docker 部署时通过 .env.docker.ollama 文件管理配置。
API 基础路由为 /runs(规范化运行请求)和 /harness(可信 CLI 任务执行器)。Harness 子系统支持 codex、claude 和 gemini CLI 任务,所有路由受 Supabase 身份验证保护。主要端点包括 POST /harness/jobs(创建任务)、GET /harness/jobs(列表查询)、GET /harness/jobs/{job_id}(获取任务状态)。API 文档可访问 http://localhost:8000/docs,健康检查端点为 /health,Prometheus 指标端点为 /metrics/prometheus。
S18Share 支持工作流无关的集成设计,通过 integration_id 和 source_system 参数路由到相应的集成适配器。Wise-AI 集成需要配置 EXTERNAL_MOCKEHR_BASE_URL 环境变量并验证端点可达性。所有外部请求被规范化为标准的 /runs 合约格式,解耦了核心编排逻辑与产品特定的工作流实现。支持多个集成伙伴接入,每个集成通过适配器层实现请求转换和响应映射。
该工具提供了一种执行代理式AI工作流的方法,适用于AI代理开发和测试,但其使用场景和应用范围需要进一步扩展和优化。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,MCP工具 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | s18 |
| 原始描述 | 开源MCP工具:An execution harness for agentic AI workflows.。⭐6 · Python |
| Topics | mcpai-agents-agentic-ai-llmmcp-model-context-protocol-rag-faiss-vector-searchpython |
| GitHub | https://github.com/riteshverma/s18 |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-03 · 更新时间:2026-06-11 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端