tools-mcp
Guide Swarms tool schema conversion, BaseTool helpers, and MCP client/server workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- tools-mcp
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guide Swarms tool schema conversion, BaseTool helpers, and MCP client/server workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md2.7 KB
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md2.2 KB
03 SKILL.md 正文
Tools and MCP
Use this sub-skill when the user wants to turn Python callables into tools, reason about tool schemas, or connect Swarms to an MCP server.
Owns these workflows
- Convert functions and Pydantic models into tool schemas.
- Use
BaseToolto inspect, validate, and execute local tools. - Configure
MCPManager,MCPConnection, andMCPOAuthConfig. - Use one or many MCP servers from an
Agent. - Build or smoke-test a small local MCP server.
Does not own
- Single-agent prompt, memory, marketplace, or fallback behavior; use
single-agent. - CLI file loading or autoswarm generation; use
cli-loaders. - Multi-agent orchestration, routing, or swarm selection; use
multi-agent-workflows.
Read this sub-skill when the request mentions
BaseTool,tool_registry,func_to_dict,base_model_to_openai_function, orexecute_tool_by_name.MCPManager,MCPConnection,MCPOAuthConfig,mcp_url,mcp_urls, ormcp_configs.streamable_http,sse,stdio, auth headers, bearer tokens, OAuth, or tool routing.Agent(..., mcp_url=...)or local MCP server debugging.
Working shape
- Decide whether the user needs local tool schemas, a direct MCP client, or an MCP server.
- Check auth style and transport before promising a live connection.
- Use the bundled references for API shapes and recovery steps.
- Prefer a local server smoke test before a remote MCP endpoint.
What to read next
references/api-reference.mdfor schema helpers and MCP config objects.references/workflows.mdfor function-schema, Agent+MCP, and local-server recipes.references/troubleshooting.mdfor auth, transport, and tool routing failures.scripts/tool_schema_smoke.pyandscripts/mcp_smoke.pyfor safe offline checks.
Typical user questions this sub-skill should answer
- How do I convert a function or Pydantic model into a tool schema?
- How do I route MCP tools from one or many servers?
- Why does the client say it cannot find a tool name?
- Why does a local MCP server work on one header but not another?
- How do I prove the tool path without talking to a remote service?
Route boundaries
- If the task is mainly about one agent’s prompt or memory, route to
single-agent. - If the task is about command-line creation or file loaders, route to
cli-loaders. - If the task is about a swarm shape or router choice, route to
multi-agent-workflows.
Acceptance checklist
- The response should identify the right helper function or MCP config object.
- The response should state which transport and auth style are required.
- The response should provide a concrete smoke or validation step.
- The response should include a recovery path for missing dependencies, bad headers, or empty tool lists.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.