@elyracode/mcp

中文文档
0.9.57发布于 2026/11/10MITES Module近 30 天下载 2882

Model Context Protocol client for Elyra -- uses the MCP servers you already configured for Claude Code, Cursor, or VS Code

原始使用文档

@elyracode/mcp

Model Context Protocol client for Elyra. It uses the MCP servers you already configured for Claude Code, Cursor, VS Code, or Elyra, so there is nothing to copy.

Bundled with @elyracode/coding-agent: every Elyra install has it. With no servers configured it adds no tools and costs nothing. Turn it off with "mcp": false in ~/.elyra/agent/settings.json.

What it does

  • Reads existing configuration from ~/.claude.json, ~/.cursor/mcp.json, ~/.elyra/agent/mcp.json, and, in trusted projects only, .mcp.json, .elyra/mcp.json, .cursor/mcp.json, and .vscode/mcp.json.
  • Adds two stable tools instead of every server's schemas: mcp_search finds a tool, mcp_call runs it. The tools block never changes with the number of servers, which keeps the prompt cache warm and the context small.
  • Starts servers lazily and caches tool lists on disk, so searching rarely needs a running server.
  • Direct tools on request. "directTools": true on a server also registers each of its tools as mcp__<server>__<tool>. Tools that appear later are registered with defer, so they do not break the prompt cache mid-conversation.
  • OAuth for remote servers via /mcp login <server>, with dynamic client registration, PKCE, and automatic refresh. Tokens are stored with 0600 permissions.
  • Shares connections with child agents. Swarm stages reuse the parent session's servers through a local broker instead of starting their own.
  • Keeps secrets in. Stdio servers get a minimal environment plus the env you configure, not your whole shell.

Commands

/mcp                       status of every server, plus skipped files and config problems
/mcp login <server>        OAuth login for a remote server
/mcp logout <server>       forget stored tokens
/mcp refresh [server]      reconnect and refetch tool lists
/mcp disable <server>      switch a server off
/mcp enable <server>
/mcp reload                re-read all configuration files

See docs/mcp.md for the configuration format and details.

版本与发布记录

@elyracode/mcp 共发布 14 个版本,首次发布于 2026/09/30;过去 12 个月发布了 14 个版本。

版本发布日期距今
0.9.57latest2026/11/103 天前
0.9.562026/11/0212 天前
0.9.552026/10/2123 天前
0.9.542026/10/1430 天前
0.9.532026/10/141 个月前
0.9.522026/10/101 个月前

关于 @elyracode/mcp 的常见问题

@elyracode/mcp 是什么?

Model Context Protocol client for Elyra -- uses the MCP servers you already configured for Claude Code, Cursor, or VS Code

如何安装 @elyracode/mcp?

在项目目录运行 npm install @elyracode/mcp,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typebox(*)、@elyracode/ai(*)、@elyracode/coding-agent(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@elyracode/mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elyracode__mcp 是否存在。

@elyracode/mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@elyracode/mcp 可以商用吗?

@elyracode/mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@elyracode/mcp 的下载量有多少?

根据 npm 官方下载统计,@elyracode/mcp 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,882 次,日均约 96 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elyracode/mcp 还在维护吗?

最新版本 0.9.57 发布于 2026/11/10(3 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/09/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。