codemcp

io.github.stackunseen由 GitHub 账号 stackunseen 发布v0.5.0更新于 Nov 7, 2026

MCP 代码模式:在你的所有服务器上搜索、描述和执行,并配有沙箱和审批机制。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Code mode for MCP: search, describe and execute over all your servers, with a sandbox and approvals.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

codemcp 的本地 MCP 服务;无需登录;STDIO;4 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 codemcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

codemcp

The codemcp command and the MCP server behind it.

bash
codemcp import --write      # discover servers from your MCP clients into codemcp.config.jsoncodemcp tools               # connect and list every tool with its pin statuscodemcp stubs --detail full # print the TypeScript the model will seecodemcp serve               # run the proxy over stdio

Point your MCP client at npx codemcp-cli serve. It advertises three tools, search, describe and execute, plus any passthrough patterns from the config.

Programmatic use:

ts
import { Proxy } from "codemcp-cli";
const proxy = new Proxy({ config: { servers: { shop: { command: "node", args: ["catalog-server.mjs"] } } } });await proxy.start();await proxy.server.connect(transport);

来源:packages/proxy/README.md,提交 c41275a

工具

4

describe

Return TypeScript signatures (and, with detail=full, documentation and output types) for the given tools or for every tool of a server. Call this to learn exact argument shapes before writing code. Servers: (none connected).

输入参数toolsdetailserver

execute

Run TypeScript/JavaScript in a sandbox. Call tools as `await tools.<server>.<tool>({...})`. Use loops, filters and `console.log` freely; only the returned value and logs come back to you. The sandbox has no network, filesystem, timers beyond the deadline, or access to credentials. Return a compact result; large intermediate data should stay in the sandbox. Write the body of an async function. Use `return` to send a value back. Tools are at `tools.<server>.<tool>(args)` and return Promises. Call `describe` first for exact types. Independent tool calls may run concurrently with Promise.all. Errors from tools throw; catch them if you want to continue.

输入参数code必填

approve

Resume an execution that paused for approval. Only call this after a human has explicitly decided.

输入参数seq必填allow必填executionId必填

版本历史

2
  1. v0.5.0最新Nov 3, 2026
  2. v0.4.0Oct 30, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分