x4-mcpgen
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
x4-mcpgen
Generate production-oriented MCP server scaffolds — secure by default.
Part of the X4 ecosystem: x4-skills → x4-mcpgen → x4-sec → x4-runtime → x4-obs
30-second demo
pip install -e ".[dev]"
x4-mcpgen init weather --tools 2
cd weather
pip install -e ".[dev]"
pytest -q
x4-mcpgen validate .
x4-mcpgen test .Related MCP server: mcpnew
Why not another template?
Most MCP starters ship with broad permissions and no tests. x4-mcpgen produces:
Explicit tool allow-lists (no
"*")Unit tests for every generated tool
SECURITY.md, Apache-2.0, CI workflowmcp.jsonwith stdio transport only by defaultDockerfile with non-root user
Ready for
x4-sec scan
CLI
x4-mcpgen init <name> [--tools N] [--out DIR]
x4-mcpgen validate [PATH]
x4-mcpgen test [PATH]
x4-mcpgen package [PATH]
x4-mcpgen doctorGenerated layout
my-mcp/
├── src/<pkg>/
│ ├── server.py
│ └── tools/
├── tests/
├── schemas/
├── Dockerfile
├── mcp.json
├── pyproject.toml
├── README.md
├── SECURITY.md
├── LICENSE
└── .github/workflows/ci.ymlArchitecture — Mermaid scope map
flowchart TD
SPEC[Tool Definitions] --> VALID[Validate Configuration]
VALID --> GEN[Generate MCP Project]
GEN --> SRC[Server and Tool Modules]
GEN --> TEST[Generated Tests]
GEN --> POLICY[Allow-list and stdio-first Config]
GEN --> DOCS[Security Docs and License]
GEN --> CI[CI and Container Files]
SRC --> CHECK[Validate and Test Generated Project]
TEST --> CHECK
POLICY --> CHECK
DOCS --> CHECK
CI --> CHECKLicense
Apache-2.0
APEX Architecture Map
Status: architecture documentation; implementation and deployment claims require independent verification.
flowchart LR
Source[Canonical tool contract] --> Normalize[Normalize names and types]
Normalize --> Validate[Validate schema constraints]
Validate -->|invalid| Diagnostics[Actionable schema errors]
Validate -->|valid| Generate[Generate protocol schema artifacts]
Generate --> Determinism{Repeat generation identical?}
Determinism -->|no| Fail[Fail determinism test]
Determinism -->|yes| Fixtures[Update or compare golden fixtures]
Fixtures --> Consumer[Compile / validate sample consumer]
Consumer --> Compat{Breaking change detected?}
Compat -->|yes| Major[Require explicit version bump]
Compat -->|no| Package[Package generated artifacts]
Package --> Provenance[Record generator and input version]Evidence note: Deterministic output, compatibility checks, and consumer validation are proposed quality gates; verify they exist before claiming code generation is production-safe.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceGenerates production-ready MCP server projects from a single command, providing project structure, tool examples, and optional advanced templates.MIT
- AlicenseNot gradedqualityDmaintenanceEnables developers to scaffold secure-by-default MCP servers with deny-all permissions, typed tool stubs, and pre-wired audit hooks, while enforcing security posture through CI.7 npmMIT
- AlicenseNot gradedqualityCmaintenanceGenerates complete, runnable MCP server projects from natural-language tool descriptions, including schema, implementation, tests, README, and license. It enables AI agents to scaffold standalone MCP servers ready to install and run.MIT
- AlicenseNot gradedqualityCmaintenanceScaffolds a custom MCP server with placeholder resources and tools, enabling developers to practice setting up MCP configuration, environment variables, and server implementation.ISC