智能代理网格 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
智能代理网格 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
智能代理网格 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/sampleXbro/agentsmesh
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "agentsmesh"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 智能代理网格 执行以下任务... Claude: [自动调用 智能代理网格 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"______": {
"command": "npx",
"args": ["-y", "agentsmesh"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
```bash npm install -g agentsmesh # global
npm install -D agentsmesh # npm pnpm add -D agentsmesh # pnpm yarn add -D agentsmesh # yarn
Pick whichever matches your environment — every install method ships the same CLI (agentsmesh and the amsh alias) and the same TypeScript library.
npx agentsmesh --help ```
The Node-based install also exposes the typed programmatic API for scripts and CI tooling.
---
Works on Linux, macOS, and Windows. Install via Homebrew, a standalone binary, or any Node.js package manager, then:
agentsmesh init # scaffold .agentsmesh/ + agentsmesh.yaml
agentsmesh generate # produce native configs for every enabled tool
agentsmesh check # CI-friendly drift gate against .agentsmesh/.lock
init — creates agentsmesh.yaml, agentsmesh.local.yaml, and the canonical .agentsmesh/ directory.generate — writes CLAUDE.md, AGENTS.md, .cursor/, .github/copilot-instructions.md, etc. from canonical sources.check — exits non-zero if generated files have drifted from .agentsmesh/.lock. Drop into CI.If you installed via npm install -D agentsmesh (also pnpm add -D / yarn add -D), prefix each command with npx. The CLI ships as both agentsmesh and the shorter alias amsh.
---
agentsmesh init [--global] [--yes]
agentsmesh generate [--global] [--targets <csv>] [--check] [--dry-run] [--force] [--refresh-cache]
agentsmesh import --from <target> [--global]
agentsmesh convert --from <target> --to <target> [--global] [--dry-run]
agentsmesh diff [--global] [--targets <csv>]
agentsmesh lint [--global] [--targets <csv>]
agentsmesh watch [--global] [--targets <csv>]
agentsmesh check [--global]
agentsmesh merge [--global]
agentsmesh matrix [--global] [--targets <csv>] [--verbose]
agentsmesh install <source> [--sync] [--path <dir>] [--target <id>] [--as <kind>] [--name <id>] [--extends] [--all] [--dry-run] [--global] [--force]
agentsmesh uninstall <name>[,<name>...] [--all] [--keep-pack] [--keep-generated] [--dry-run] [--global] [--force]
agentsmesh installs list [--global]
agentsmesh plugin add|list|remove|info [--version <v>] [--id <id>]
agentsmesh target scaffold <id> [--name <displayName>] [--force]
agentsmesh --help prints the same surface; agentsmesh <cmd> --help is also supported.
A quick sample of the canonical → native projection:
agentsmesh init
find .agentsmesh -maxdepth 2 -type f # see the canonical scaffold
agentsmesh generate
agentsmesh diff # preview future changes
agentsmesh check # CI-style drift gate
On macOS/Linux you can also run tree .agentsmesh if you have tree installed.
---
If your repo already has .cursor/, .claude/, .github/copilot-instructions.md, or other native files, you don't have to delete them. The recommended flow imports them into .agentsmesh/ first, lets you preview the projection, and only then trusts generate.
agentsmesh import --from cursor # or claude-code, copilot, codex-cli, gemini-cli, windsurf, amp, zed, warp, ...
agentsmesh diff # patch-style preview of what generate would change
agentsmesh generate # write native configs (back) from canonical
agentsmesh check # add to CI to detect drift
What this gets you:
import reads existing tool configs and writes equivalent canonical files into .agentsmesh/ — round-trip metadata is preserved so re-import doesn't lose information.diff shows the unified patch every output file would receive, so you can review before any write.check reads .agentsmesh/.lock and fails the build if the canonical sources and the generated files disagree.import --from accepts any built-in target ID listed in the Supported Tools matrix. Plugin targets are valid too.
---
.agentsmesh/ at the project level is for teams. ~/.agentsmesh/ at the home level is for personal setup across every repo you touch:
agentsmesh init --global
agentsmesh import --global --from claude-code
agentsmesh generate --global # writes ~/.claude/CLAUDE.md, ~/.cursor/, ~/.codex/, ~/.windsurf/, etc.
Every built-in target with a global layout supports global mode. Every CLI command (diff, lint, watch, check, merge, matrix) accepts --global. Global mode paths per tool →
Every config file ships with a generated JSON Schema, so VS Code, JetBrains, and other editors give you autocomplete and validation out of the box:
| Config file | JSON Schema |
|---|---|
agentsmesh.yaml / .local.yaml | node_modules/agentsmesh/schemas/agentsmesh.json |
.agentsmesh/hooks.yaml | schemas/hooks.json |
.agentsmesh/permissions.yaml | schemas/permissions.json |
.agentsmesh/mcp.json | schemas/mcp.json |
.agentsmesh/packs/*/pack.json | schemas/pack.json |
agentsmesh init writes the appropriate # yaml-language-server: $schema=... directive (or $schema field for JSON) into each canonical file, so editors pick up validation immediately.
| Variable | Default | Description |
|---|---|---|
AGENTSMESH_GITHUB_TOKEN | — | GitHub personal access token for private repo installs and extends. |
AGENTSMESH_CACHE | ~/.agentsmeshcache | Override the remote-extends / tarball cache directory. |
AGENTSMESH_MAX_TARBALL_MB | 500 | Maximum GitHub tarball size in MiB the install command will accept. Allowed range: 1–4096. Increase this when installing from large monorepos. |
AGENTSMESH_STRICT_PLUGINS | 0 | When set to 1, a failed plugin descriptor import fails the build instead of warning-and-skip. Useful in CI where a missing plugin target is a regression. |
---
AgentsMesh is also importable as a typed ESM library, so you can drive every CLI capability — generate, import, lint, diff, check — from scripts, IDE extensions, MCP servers, or CI without spawning the CLI. Public entrypoints: agentsmesh (full surface), agentsmesh/engine, agentsmesh/canonical, agentsmesh/targets.
loadProjectContext() mirrors what the CLI does on startup: resolves config, applies local overrides, loads plugins, materializes extends and installed packs, and reads the canonical directory. The result is a single context value you can pass to generate, lint, or diff — the same surface the CLI uses.
import {
loadProjectContext,
generate,
lint,
diff,
check,
importFrom,
registerTargetDescriptor,
type GenerateResult,
type LintResult,
type LockSyncReport,
type TargetDescriptor,
} from 'agentsmesh';
// CLI-parity generate pattern: config, plugins, extends, packs, then generation.
const project = await loadProjectContext(process.cwd());
const results: GenerateResult[] = await generate(project);
// Lint — pure, returns structured diagnostics + hasErrors.
const lintResult: LintResult = await lint(project);
// Diff — runs generate internally, returns unified diffs + summary.
const { diffs, summary } = await diff(project);
// Check — lock-file vs current canonical drift report.
const drift: LockSyncReport = await check({
config: project.config,
configDir: project.configDir,
canonicalDir: project.canonicalDir,
});
// Import a built-in or registered plugin target back into canonical form.
await importFrom('claude-code', { root: process.cwd() });
// Register a custom target descriptor at runtime (same shape plugins ship).
const myDescriptor: TargetDescriptor = /* ... */;
registerTargetDescriptor(myDescriptor);
Subpath imports are available when you want narrower bundles:
import { generate, lint, diff, check, loadProjectContext } from 'agentsmesh/engine';
import { loadCanonical, loadCanonicalFiles } from 'agentsmesh/canonical';
import { getAllDescriptors } from 'agentsmesh/targets';
Every public symbol resolves to a real .d.ts under strict TypeScript. Full reference in the programmatic API docs — entrypoint table, every function signature, the typed error taxonomy, and the canonical/target type lists. ESM-only; requires Node.js 20+.
---
Ship new target support as a standalone npm package — no fork, no core PR:
agentsmesh plugin add agentsmesh-target-my-tool
agentsmesh generate # plugin targets run alongside built-ins
agentsmesh generate --global # global mode works for plugins too
Plugins have full parity with built-in targets: project + global layouts, feature conversions, scoped settings, per-feature lint hooks, and hook post-processing. By default a failed plugin import logs a warning and is skipped; set strict: true on the plugin entry or run AGENTSMESH_STRICT_PLUGINS=1 agentsmesh generate to fail the build instead — useful in CI where a missing target is a real regression. Build a plugin →
agentsmesh 是一个旨在统一 AI 编码工具配置的管理框架。它通过标准化的方式,帮助开发者在不同的 AI 助手(如 Claude、Cursor 等)之间同步和管理指令集与上下文,实现 AI 开发体验的一致性。
agentsmesh 提供了一个强大的功能矩阵,支持多种主流 AI 工具的配置转换与同步。通过内置的工具集,用户可以轻松管理不同 AI 平台的指令文件,确保开发环境在切换工具时依然保持高度的一致性。
本项目基于 Node.js 环境运行,建议使用 npm、pnpm 或 yarn 进行包管理。您可以根据项目需求,选择全局安装或将其作为开发依赖(dev dependency)安装在特定仓库中,以确保版本锁定。
您可以根据环境选择多种安装方式:支持通过 npm、pnpm 或 yarn 进行 Node.js 包管理安装;也可以使用 Homebrew 或下载独立二进制文件进行部署。如果不想安装即可试用,可以直接使用 npx agentsmesh 命令运行。
agentsmesh 支持 Linux、macOS 和 Windows。通过 `agentsmesh init` 初始化配置文件,使用 `agentsmesh generate` 生成各工具的原生配置,并利用 `agentsmesh check` 进行 CI 友好的漂移检测,确保配置的一致性。
为了确保在现有仓库中安全使用,agentsmesh 支持将已有的 `.cursor/`、`.claude/` 或 `.github/copilot-instructions.md` 等文件导入到 `.agentsmesh/` 目录中。通过 `import` 命令预览投影效果后,再执行 `generate`,实现平滑迁移。
除了 CLI 工具,agentsmesh 还作为一个类型化的 ESM 库提供 TypeScript Programmatic API。开发者可以直接在脚本、IDE 扩展、MCP 服务器或 CI 流水中调用 `generate`、`import`、`lint` 等核心能力,无需频繁调用命令行。
agentsmesh 采用高度模块化的插件机制。开发者可以通过发布独立的 npm 包来为新的 AI 编码工具增加支持,无需修改核心代码。插件在运行 `agentsmesh generate` 时会与内置目标并行工作,并完美支持 Global 模式。
高质量的开源MCP工具,提供统一的AI编码代理规则管理
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,智能代理网格 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | agentsmesh |
| 原始描述 | 开源MCP工具:One reliable canonical source for AI coding agent rules, commands, skills, MCP, 。⭐14 · TypeScript |
| Topics | ai-agentsclaude-codecodexconfig-sync |
| GitHub | https://github.com/sampleXbro/agentsmesh |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端