Skip to content
Back to search

any-mcp-codemode

Turn any MCP servers into one code-mode MCP server (QuickJS sandbox, single Rust binary). No Cloudflare dependency.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/exo273--any-mcp-codemode/badge.svg)](/listings/exo273--any-mcp-codemode)

HTML

<a href="/listings/exo273--any-mcp-codemode"><img src="/api/listings/exo273--any-mcp-codemode/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

cargo install --git https://github.com/exo273/any-mcp-codemode
any-mcp-codemode init          # writes a starter config / escribe una config inicial
any-mcp-codemode doctor        # connects and lists tools / conecta y lista herramientas

The config uses the standard `mcpServers` format, so you can paste the servers you already have. / La config usa el formato estándar `mcpServers`, así que puedes pegar los servidores que ya tienes:

{
  "mcpServers": {
    "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" } },
    "fs": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] }
  }
}

Then register **one** server in your client instead of N. / Luego registra **un** servidor en tu cliente en lugar de N:

hermes mcp add codemode --command any-mcp-codemode --args serve   # Hermes (verified / verificado)
claude mcp add codemode -- any-mcp-codemode serve                  # Claude Code

The model gets one `code` tool and writes / El modelo recibe una sola herramienta `code` y escribe:

const [issues, files] = await Promise.all([
  codemode.github.list_issues({ owner: "exo273", repo: "any-mcp-codemode" }),
  codemode.fs.list_directory({ path: "." }),
]);
return { open: issues.length, files: files.length };

| Command | What it does / Qué hace | |---|---| | `serve` | MCP server over stdio / servidor MCP por stdio | | `run <file\|->` | Run JS once (scripts, CI) / ejecuta JS una vez | | `doctor` | Connect + list tools / conecta y lista herramientas | | `types` | TypeScript the model sees / el TypeScript que ve el modelo | | `history` | Recent executions / ejecuciones recientes | | `init` | Starter config / config inicial |

`--lang es` or `AMC_LANG=es` switches the interface language. / cambia el idioma.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 77 lines
  1. # any-mcp-codemode
  2. Turn any MCP servers into one **code-mode** MCP server: the model writes JavaScript
  3. that calls your tools inside a QuickJS sandbox. Inspired by
  4. [Cloudflare Code Mode](https://developers.cloudflare.com/agents/tools/codemode/api-reference/),
  5. with no Cloudflare dependency. Single Rust binary for Windows, macOS, Linux and Docker.
  6. Convierte cualquier servidor MCP en un único servidor MCP en **modo código**: el modelo
  7. escribe JavaScript que llama a tus herramientas dentro de un sandbox QuickJS. Inspirado
  8. en [Code Mode de Cloudflare](https://developers.cloudflare.com/agents/tools/codemode/api-reference/),
  9. sin depender de Cloudflare. Un solo binario en Rust para Windows, macOS, Linux y Docker.
  10. > **Status / Estado:** v0.1 (phase 1) — stdio server, `run`, multi-server, SQLite/Postgres history, en/es.
  11. > No prebuilt binaries yet (phase 2) / aún sin binarios precompilados (fase 2).
  12. ## Quick start / Inicio rápido
  13. ```bash
  14. cargo install --git https://github.com/exo273/any-mcp-codemode
  15. any-mcp-codemode init # writes a starter config / escribe una config inicial
  16. any-mcp-codemode doctor # connects and lists tools / conecta y lista herramientas
  17. ```
  18. The config uses the standard `mcpServers` format, so you can paste the servers you
  19. already have. / La config usa el formato estándar `mcpServers`, así que puedes pegar los
  20. servidores que ya tienes:
  21. ```jsonc
  22. {
  23. "mcpServers": {
  24. "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" } },
  25. "fs": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] }
  26. }
  27. }
  28. ```
  29. Then register **one** server in your client instead of N. / Luego registra **un** servidor
  30. en tu cliente en lugar de N:
  31. ```bash
  32. hermes mcp add codemode --command any-mcp-codemode --args serve # Hermes (verified / verificado)
  33. claude mcp add codemode -- any-mcp-codemode serve # Claude Code
  34. ```
  35. The model gets one `code` tool and writes / El modelo recibe una sola herramienta `code` y escribe:
  36. ```js
  37. const [issues, files] = await Promise.all([
  38. codemode.github.list_issues({ owner: "exo273", repo: "any-mcp-codemode" }),
  39. codemode.fs.list_directory({ path: "." }),
  40. ]);
  41. return { open: issues.length, files: files.length };
  42. ```
  43. | Command | What it does / Qué hace |
  44. |---|---|
  45. | `serve` | MCP server over stdio / servidor MCP por stdio |
  46. | `run <file\|->` | Run JS once (scripts, CI) / ejecuta JS una vez |
  47. | `doctor` | Connect + list tools / conecta y lista herramientas |
  48. | `types` | TypeScript the model sees / el TypeScript que ve el modelo |
  49. | `history` | Recent executions / ejecuciones recientes |
  50. | `init` | Starter config / config inicial |
  51. `--lang es` or `AMC_LANG=es` switches the interface language. / cambia el idioma.
  52. ## Documentation / Documentación
  53. | | English | Español |
  54. |---|---|---|
  55. | Design | [docs/en/design.md](docs/en/design.md) | [docs/es/design.md](docs/es/design.md) |
  56. | i18n | [docs/en/i18n.md](docs/en/i18n.md) | [docs/es/i18n.md](docs/es/i18n.md) |
  57. | Commits | [docs/en/commits.md](docs/en/commits.md) | [docs/es/commits.md](docs/es/commits.md) |
  58. | Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) | [CONTRIBUTING.md](CONTRIBUTING.md) |
  59. ## License / Licencia
  60. Licensed under either of [Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT), at your option.
  61. Bajo [Apache-2.0](LICENSE-APACHE) o [MIT](LICENSE-MIT), a tu elección.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.