Skip to main content
Glama
mcpify-any-repo

mcpify-any-repo

by pjrpjr
README.md
# mcpify-any-repo

Turn **any public GitHub repository or local codebase** into a runnable, zero-dependency Python 3 stdlib **MCP Server** (`server.py`) + `smithery.yaml` + `glama.json` + `bazaar_card.json` in one command.

- **Zero runtime dependencies** — pure Python 3 standard library only (`ast`, `json`, `urllib`, `http.server`).
- **Multi-source code analyzer** — parses `README.md`, Python `argparse` / Click / Typer / typed functions, `pyproject.toml`, `package.json`, `Makefile`, and OpenAPI/Swagger specs (`.json` & `.yaml`).
- **Safe by default** — compiled servers emit dry-run execution plans unless `MCP_ALLOW_EXEC=1` is explicitly enabled, and enforce strict SSRF blocks on loopback/RFC1918/metadata targets.
- **Standalone local mode + live cloud acceleration** — runs 100% offline on local directories or connects to [clonesaas.fastmesh.dev](https://clonesaas.fastmesh.dev) for hosted cloud compilation.

## Quickstart

```bash
git clone https://github.com/pjrpjr/mcpify-any-repo.git
cd mcpify-any-repo

# Verify installation offline
python3 mcpify_any_repo.py --self-check

# Compile any public GitHub repo into an MCP bundle
python3 mcpify_any_repo.py https://github.com/encode/httpx -o ./httpx-mcp

# Compile a local repository completely offline
python3 mcpify_any_repo.py ./my-local-repo -o ./my-local-mcp --offline

# Enable live FastMesh cloud acceleration
python3 mcpify_any_repo.py https://github.com/astral-sh/ruff -o ./ruff-mcp --cloud

# Run the generated MCP server immediately
python3 ./my-local-mcp/server.py --self-check
python3 ./my-local-mcp/server.py --stdio
```

## Output Artifacts

Every run emits a self-contained bundle ready for Claude Desktop, Cursor, Windsurf, Smithery, Glama, and Causal Bazaar:

| File | Purpose |
| :--- | :--- |
| `server.py` | Runnable zero-dep Python 3 stdlib MCP server (`--stdio`, `--http`, `--self-check`) |
| `smithery.yaml` | Smithery registry manifest with typed `configSchema` |
| `glama.json` | Glama MCP directory schema (`transport: ["stdio", "streamable-http"]`) |
| `bazaar_card.json` | FastMesh Causal Bazaar listing card with SHA-256 artifact hashes |
| `compile_manifest.json` | Compilation summary, tool inventory, and integrity digests |

## MCP Client Configuration (Claude Desktop / Cursor / Windsurf)

Add `mcpify-any-repo` itself as an MCP server so your coding agent can compile repositories on demand:

```json
{
  "mcpServers": {
    "mcpify-any-repo": {
      "command": "python3",
      "args": ["/path/to/mcpify-any-repo/mcpify_any_repo.py", "--stdio"],
      "env": {
        "FASTMESH_API_KEY": ""
      }
    }
  }
}
```

### Exposed MCP Tools

- `inspect_repo` — Inspect a local repo or GitHub URL and list detected CLI commands, OpenAPI endpoints, and functions.
- `mcpify_repo` — Compile target repository into `server.py`, `smithery.yaml`, `glama.json`, and `bazaar_card.json`.
- `validate_mcp_bundle` — Verify AST syntax and JSON/YAML validity of an emitted bundle.

## Hosted Cloud Acceleration & FastMesh Prepaid Wallets

Want hosted Streamable HTTP MCP endpoints, 40+ verified-outcome developer APIs, and `$0` charge on empty/miss results?

- **Live Super-Catalog & Gateway**: [https://super.fastmesh.dev](https://super.fastmesh.dev)
- **Live Repo-to-MCP Cloud Compiler**: [https://clonesaas.fastmesh.dev](https://clonesaas.fastmesh.dev)
- **Prepaid Creem Wallet Packs** (one balance across every FastMesh endpoint, zero subscription lock-in):
  - **Starter ($19)**: [Buy Starter Pack](https://www.creem.io/product/prod_5YTmBS1AJVStf0nTYjKaP2)
  - **Pro ($79)**: [Buy Pro Pack](https://www.creem.io/product/prod_4TXd1wGn4p1yOlHy9YEfqe)
  - **Scale ($249)**: [Buy Scale Pack](https://www.creem.io/product/prod_3eyoWKwE8jQm6LHceGFjKn)

## Development & Tests

```bash
python3 -m unittest discover -s tests -v
```

## License

MIT — see [LICENSE](./LICENSE).

TDQS

B3.4/5.0

Scored across 3 tools

Disambiguation4/5

Each tool occupies a distinct pipeline stage: inspect (analyze and report), mcpify (compile artifacts), validate (check output). The only mild ambiguity is the overlap between inspect_repo and mcpify_repo, since both consume a repo and inspect_repo already returns 'synthesized MCP tool specs' — an agent could wonder whether mcpify_repo is needed. Descriptions still give enough signal to sequence them correctly.

Naming Consistency5/5

All three names follow a clean verb_noun pattern (inspect_repo, mcpify_repo, validate_mcp_bundle) in snake_case, with the noun matching the pipeline concepts (repo vs bundle). No stylistic deviations.

Tool Count5/5

Three tools is a tight, purposeful surface for a build-pipeline server: analyze, generate, verify. Nothing feels padded and no obvious operation is crammed into a separate tool.

Completeness4/5

The inspect -> mcpify -> validate lifecycle is covered end to end for generating and checking an MCP bundle. Minor gaps remain around post-build operations (e.g. publishing/installing the generated server, listing or re-running validation on an existing bundle, or cleaning up outputs), but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues