agent

作者 1mcp-app已验证

A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.

487
Stars
58
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/1mcp-app/agent

快速入门

使用 agent 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

1MCP

NPM Version NPM Downloads CodeQl GitHub Repo stars Docs DeepWiki License

1MCP is the unified MCP runtime. 1mcp serve aggregates your MCP servers, and CLI mode adds a thinner agent-facing workflow for Codex, Claude, Cursor, and similar tool-using agents.

Why 1MCP

Most MCP setups eventually hit two kinds of sprawl:

  • Configuration sprawl: every client needs its own MCP wiring, auth choices, and filtering rules.

  • Agent sprawl: autonomous sessions carry too many tools and schemas into context up front.

1MCP addresses both:

  • 1mcp serve gives you one aggregated runtime in front of many MCP servers.

  • CLI mode lets agents discover tools progressively with instructions, inspect, and run.

  • Static servers can load at startup, while template servers are created from per-client or per-session context.

  • Presets, filters, and instruction aggregation keep the same runtime adaptable across clients and projects.

Approach Best for Tradeoff

1MCP CLI mode Codex, Claude, agent loops Requires a running 1mcp serve instance

1MCP stdio proxy Maximum compatibility across clients Still depends on serve, and auth-capable HTTP clients have a more direct path

Direct streamable HTTP MCP-native HTTP clients No project context, no .1mcprc, and a broader tool surface is exposed directly

Custom proxying One-off compatibility shims You own discovery, filtering, auth, and runtime lifecycle

Quick Start for Agent Users

This page is optimized for AI agent users. The 5-minute outcome is simple: start a real 1mcp serve runtime, connect your agent with cli-setup, then verify the instructions -> inspect -> run workflow.

Install 1MCP, add one upstream server, and start the runtime:

npm install -g @1mcp/agent
1mcp mcp add context7 -- npx -y @upstash/context7-mcp
1mcp serve

In a second shell, connect your agent to CLI mode:

1mcp cli-setup --codex
# or
1mcp cli-setup --claude --scope repo --repo-root .

Then verify the agent workflow:

# shell 1
1mcp serve

# shell 2
1mcp instructions
1mcp inspect context7
1mcp inspect context7/query-docs
1mcp run context7/query-docs --args '{"libraryId":"/mongodb/docs","query":"aggregation pipeline"}'

If you want the full walkthrough (with success criteria and off-ramps), use the Quick Start guide.

For a given agent, choose one mode only. If you switch that agent to CLI mode, remove its old direct MCP configuration first.

Why CLI Mode Exists

CLI mode is the primary workflow for agent-style sessions. It keeps MCP as the backend protocol but narrows what the agent sees at each step:

  • instructions explains the current runtime and recommended flow

  • inspect lets the agent discover only the server or tool it needs

  • run executes one selected tool after schema inspection

That gives agent loops a smaller working surface without giving up the unified runtime behind 1mcp serve.

Choose Another Path

Stdio Proxy

Use 1mcp proxy when you want the broadest client compatibility without giving up project context.

It is the recommended fallback after CLI mode because it:

  • works with the stdio transport that most AI clients already support

  • keeps project context through .1mcprc

  • supports template MCP servers resolved from project or session context

  • is easier to roll out with one-time global setup plus per-project config

Direct stdio mode is not the recommended path. It is mainly useful for debugging because 1MCP startup is slower than a thin standalone stdio setup.

Direct MCP Attachment

Direct MCP attachment is still supported for clients that want to talk to the aggregated runtime over streamable HTTP.

Examples:

{
  "mcpServers": {
    "1mcp": {
      "url": "http://127.0.0.1:3050/mcp?app=cursor"
    }
  }
}
claude mcp add -t http 1mcp "http://127.0.0.1:3050/mcp?app=claude-code"

Use this path if your client already speaks MCP natively, can work without project context, and you do not want CLI mode. For Codex, Claude, Cursor, and similar agent loops, prefer CLI mode first and proxy second.

Runtime Operators

Use the deeper docs if you are configuring or deploying the runtime itself:

Contributors

How It Works

flowchart LR
    A[User or Agent] --> B[1mcp serve]
    B --> C[Static servers loaded at startup]
    B --> D[Template servers resolved from client or session context]
    A --> E[CLI mode: instructions -> inspect -> run]
    E --> B
    F[Direct streamable HTTP client] --> B
    G[stdio-compatible client] --> H[1mcp proxy]
    H --> B

1MCP runs as an aggregated runtime behind 1mcp serve. Static servers are prepared from startup configuration, template servers are materialized when client context is known, and the runtime can use async loading for early HTTP listener availability and lazy loading for a stable tool surface. Instruction aggregation, presets, and notifications sit alongside that runtime rather than outside it.

Lazy loading is an opt-in stable tool-surface compatibility mode. It keeps the backend discovery and invocation surface at tool_list, tool_schema, and tool_invoke so capable agents can discover tools progressively without replacing their MCP tool table. Any explicitly enabled internal management tools remain directly exposed. Lazy loading reduces the initial schema payload, but it does not reduce backend connections or processes, make synchronous startup bind earlier, or repair orphaned proxy processes. See #392 for the async late-server visibility contract.

Core Capabilities

  • Unified runtime for many MCP servers behind one serve process

  • CLI mode for progressive discovery with 1mcp instructions, 1mcp inspect <server>, 1mcp inspect <server>/<tool>, and 1mcp run <server>/<tool> --args '<json>'

  • Template servers for per-client or per-session resolution

  • Opt-in async loading for early HTTP listener availability when clients can reconcile capability changes

  • Opt-in lazy loading for a stable progressive-discovery tool surface and smaller initial schemas

  • Opt-in automatic recovery for owned stdio backends, with health/status visibility and operator restart controls

  • Instruction aggregation across static and template-backed servers

  • Presets, filters, and preset change notifications

  • proxy for maximum compatibility with project context and template-server support

  • Direct streamable HTTP MCP access for native HTTP clients that do not need project context

Common Use Cases

  • Give a coding agent one stable runtime but a smaller working surface.

  • Share the same MCP inventory across Cursor, Claude Code, Codex, and internal tooling.

  • Expose context-specific template servers per repo, branch, or session.

  • Centralize auth, filtering, presets, and runtime lifecycle instead of rebuilding them in ad hoc scripts.

Contributing / License

Contributions are welcome. See CONTRIBUTING.md for the development workflow and LICENSE for the Apache 2.0 license.

常见问题

What is agent?

agent is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by 1mcp-app. A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one. It has 487 GitHub stars.

Is agent safe to use?

Yes. agent passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install agent?

Clone the repository with "git clone https://github.com/1mcp-app/agent" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is agent written in?

agent is primarily written in TypeScript. It is open-source under 1mcp-app on GitHub, so you can review or fork the full source.

Are there alternatives to agent?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情