
My Cool Proxy
io.github.karashiiro由 GitHub 账号 karashiiro 发布v1.5.4更新于 Oct 25, 2026
An MCP server gateway that minimizes context usage via progressive Lua-driven discovery 🌙
发布方自己的服务:Cool Computers
概览
一个本地 MCP 网关,统一接入多个 MCP 服务器,让助手按需逐步发现工具并用 Lua 脚本串联调用,以节省上下文。
- 可以做什么
- 按需发现已配置的服务器、其工具及完整工具详情,而不是一次性全部载入,并通过网关的 Lua 内置函数读取转发的服务器说明、提示词和资源。编写 Lua 脚本把已发现的工具当作异步函数调用,支持顺序串联、条件判断和循环,并汇总进度,从而执行多步工作流。启用后可把 Gateway Skills 作为 MCP 资源加载并调用其脚本。通过可选的 Web 面板查看执行历史、工具调用日志和会话。
- 适用场景
- 当你连接多个 MCP 服务器、希望用一个统一入口同步各客户端配置时适用;也适合工具描述和结果占满上下文窗口的情况。需要在一个调用中组合多步工具流程的助手同样适用。
- 运行要求
- 以 npm 包形式在本地运行(需要 Node.js),可全局安装或通过 npx 启动,使用 stdio 传输。首次运行会自动生成配置文件,需编辑以列出上游 MCP 服务器;README 中的客户端示例通过 localhost 上的 HTTP 地址连接。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 My Cool Proxy,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
My Cool Proxy
My Cool Proxy is a Model Context Protocol (MCP) server gateway that tries to solve a lot of perceived problems with MCP as it exists today. In no particular order, those are that:
- Tool descriptions bloat the context window: This is a problem with how most agents integrate with MCP. Rather than implementing abstractions that enable tools to be loaded as needed, most applications dump all MCP tools into the context at once. To mitigate this, My Cool Proxy wraps tools in a Lua interpreter and exposes higher-level tools for discovering tools incrementally. Refer to Progressive Disclosure for more information.
- Tool results bloat the context window, why not use Bash? Rather than using MCP tools, agents could just execute terminal commands and use bash to filter their results - however, this means allowing the agent to perform high-risk actions more frequently. For example, you could allow an agent to use the
ghCLI to interact with GitHub, but it can then use theghCLI to perform mutating or destructive operations, as well. With the GitHub MCP Server, you can instead scope things down to read-only tools trivially. MCP allows you to tightly control what tools agents have access to. To assist with this, My Cool Proxy allows you to further filter the tools exposed to agents. - Most MCP features are unsupported: Unfortunately, most applications only expose MCP tools to agents, neglecting the other client and server features offered by the protocol. My Cool Proxy aims to be a common abstraction layer for as many protocol features as possible, which allows developers to use the full capabilities of MCP in any MCP-compatible application. This is a work in progress - check the feature support table for more details.
- Managing a config file for multiple agents is a pain: If you use more than a single MCP-compatible application, you'll quickly run into challenges keeping your MCP server configuration synchronized across them. My Cool Proxy solves this by acting as a single integration point for every server you use, reducing the number of servers to keep in sync down to just one.
Quick Start
0. Installation
Install it globally to use it as a CLI tool:
Or run it directly via npx:
1. Configure
The gateway auto-creates a default config on first run. Just run it once to generate the config file:
Then edit the config to add your MCP servers.
Example config structure:
Or, copy the example config for a more complete starting point.
2. Run
3. Connect
Add it to your MCP client config in e.g. Claude Desktop:
4. Use It
Ask your agent to perform a task that your configured MCP servers can help with, and watch it run!
Progressive Disclosure
This proxy acts as a gateway between agents and multiple MCP (Model Context Protocol) servers. Instead of connecting to each MCP server individually, agents connect to this single proxy and gain access to all configured servers through a unified interface.
Agents start with minimal knowledge about what servers or tools are available. They build context progressively:
- Check the server instructions - My Cool Proxy preloads a small prompt with brief excerpts of the configured servers and tools to prime the agent to use them.
- Call
list-servers- The agent's context now includes names and descriptions of all available MCP servers (e.g., "github", "slack", "database") - Call
list-server-tools(server_name)- The agent's context expands to include all tool names and descriptions for that specific server - Call
tool-details(server_name, tool_name)- The agent's context now has complete parameter schemas, return types (if available), and usage examples for a specific tool - Call
execute(lua_script)- With full context, the agent can write Lua scripts that call the discovered tools
Rather than loading all tools and tool descriptions into the context upfront, this defers loading tools until the agent determines those tools are needed.
Tool Chaining with Lua: Once an agent knows what tools exist, they can compose complex multi-step workflows in a single execute() call, saving the context overhead of any intermediate tool results. The Lua runtime provides access to all discovered servers as globals, with tools callable as async functions.
Sequential tool chaining:
Conditional logic:
Iteration with loops:
Gateway Skills
Gateway Skills are My Cool Proxy's implementation of Agent Skills - reusable context documents that agents can load as MCP Resources. When enabled, agents can:
- Discover skills via an automatically-injected prompt in the gateway's server instructions (or via the
_gateway.list_resources()Lua builtin; look forgw-skill://URIs) - Read skill content via the
_gateway.read_resource()Lua builtin - Execute skill scripts via the
_gateway.invoke_skill_script()Lua builtin
While many agents implement their own skill systems already, these systems are highly fragmented, and it is difficult to reuse the same skills across multiple separate agent applications. While some systems such as skills.sh solve this by copying skills between applications explicitly, My Cool Proxy solves this by centralizing all skills into its own skill management system and exposing them over MCP. To distinguish these from existing skill systems, My Cool Proxy refers to these as "Gateway Skills."
Gateway Skills are disabled by default as they may conflict with existing skill systems built into your agent. See the Configuration Guide for setup options.
For a deeper design discussion about why Gateway Skills are implemented this way, refer to this section in the design docs.
Web Dashboard
[my-cool-proxy execution dashboard preview, showing a list of Lua executions on the left side and the script and script results on the right side. The selected example shows a Playwright tool execution which returned the JS code for that tool and a browser screenshot as its result. The Lua script had browser_click and browser_take_screenshot calls. Each of those is individually clickable to show the result of the specific tool call.]My Cool Proxy includes an optional web dashboard for monitoring gateway activity. When enabled, it runs on a separate port and provides:
- Execution history — Browse all Lua script executions with syntax-highlighted scripts and results
- Tool call log — See which MCP tools were called during each execution
- Session monitoring — View active sessions, connected servers, and capabilities
- Real-time updates — New executions stream to the dashboard via WebSocket
Enable it by adding a dashboard section to your config:
Then visit http://localhost:3100 in your browser. See the Configuration Guide for details.
Configuration
See the Configuration Guide for the full config reference.
MCP Feature Support Table
来源:README.md,提交 46bfe38
工具
0版本历史
1- v1.5.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

