jacobbweber/autoreiv/mcp-engineering
Claude Code and agent skill by jacobbweber/autoreiv
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Scaffold FastMCP servers, run JSON-RPC protocol tests, deploy Docker containers with health checks, and register MCP endpoints into AutoReiv.
Install
npx vskill@latest install jacobbweber/autoreiv/mcp-engineeringSKILL.md
The same SKILL.md was published earlier as jacobbweber/autoreiv/mcp-engineering.
Enterprise MCP Server Engineering & Deployment
End-to-end engineering, testing, containerization, and registration of custom Model Context Protocol (MCP) servers for internal enterprise APIs, databases, hardware, and external services.
Dual packaging lanes [CARD-423]
MCP is one lane, not the only lane.
- Platform / built-in tools already run inside AutoReiv. They do not need an MCP server.
- Native custom tools use the
native-tool-engineeringskill andregister_native_tool. No MCP server. Sandbox plus ToolPolicyGate / HITL still apply. - MCP-backed custom tools are this skill. After
register_mcp_service(or Capabilities Studio attach on/api/settings/mcpor/api/agents/{id}/mcp), the tools show in Capabilities Studio grouped under that server's name. - MCP hosting stays in Settings. Do not move it into Capabilities Studio.
- A filesystem path in developer chat ("here is a folder of scripts, one tool per entry") is conversation context. Call
plan_native_folderor walk the directory yourself. There is no Capabilities Studio folder picker. Choose native or MCP per the operator's packaging note, then build that lane. The note is not already applied.
Operating Principles
- Strict Type Safety & Schemas:
- Every MCP tool function must expose typed parameter annotations and structured docstrings.
- Pydantic models and JSON-RPC 2.0 schema invariants must be verified before deployment.
- Single Lever Invariant:
- Automated registration through
register_mcp_serviceuses the exact same canonical store (store.set_setting("mcp_servers", ...)) and mounting pipeline as Capabilities Studio platform attach (POST /api/settings/mcp). - Never create parallel or shadow registration endpoints.
- Mandatory Container Healthchecks:
- Production Docker deployments must define an active
HEALTHCHECKinstruction to prevent silent zombie processes. - Deployments lacking health monitoring must be rejected.
- Graceful Subprocess Fallback:
- If the Docker daemon or CLI is unavailable, smoothly fall back to local
stdiosubprocess execution so developer agents can continue without interruption.
Available Tools
scaffold_mcp_server: Scaffolds a complete FastMCP project structure (server.py,pyproject.toml,Dockerfile,README.md) under$AUTOREIV_PROJECTS_DIR/<name>(or the selected project) with optional custom Python tool bodies (codeintools_spec).test_mcp_server: Performs AST syntax verification, JSON-RPC schema validation, and tool contract testing.deploy_mcp_container: Builds and runs a containerized server on the host Docker daemon (withHEALTHCHECK, optional hostvolumesbind-mounts, andhttp://host.docker.internal:<port>/sseendpoint resolution when running inside Docker), with graceful fallback tostdio.register_mcp_service: Registers the server in AutoReiv's canonical store, mounts it live viaMCPClientManager, writes the companionSKILL.md, and activatesmcp-<name>in the current session so the mountedmcp_<name>_*tools are immediately callable.
Operating Protocol
1. Interface Discovery & Design
- Clarify tool names, inputs, outputs, and descriptions with the operator.
- Formulate schemas as clean JSON objects with parameter types, descriptions, required constraints, and optional
code(the Python function body string for each tool).
2. Project Scaffolding
- Call
scaffold_mcp_serverspecifyingname,description, andtools_spec(including"code"for custom tool implementations, e.g. listing a host directory). - FastMCP project is generated under
$AUTOREIV_PROJECTS_DIR/<name>(shared with the host at$AUTOREIV_PROJECTS_HOST_PATHwhen running in Docker) or the specifiedtarget_dir.
3. Protocol & Schema Testing
- Call
test_mcp_serverpointing to the project directory (project_pathfromscaffold_mcp_server). - Verify AST syntax validity and JSON-RPC tool schemas.
- Inspect any diagnostic warnings or errors before proceeding to deployment.
4. Containerization & Deployment (Docker & Host Bind-Mounts)
- Call
deploy_mcp_containerwithproject_path,port(default8765; never8000which AutoReiv uses), optionalenv_vars, and optionalvolumes(e.g.["/home/spark:/host:ro"]when the MCP server needs read-only access to a host directory). - If Docker is running (including via
/var/run/docker.sockfrom insideautoreiv-control-plane), the image is built and the sibling container is launched on the host Docker daemon withMCP_TRANSPORT=sseand healthcheck validation. deploy_mcp_containerreturnsurl: "http://host.docker.internal:<port>/sse"when AutoReiv is inside Docker (orhttp://localhost:<port>/sseon the host).- If Docker is absent, the tool automatically selects local
stdiotransport and returnscommand.
5. AutoReiv Canonical Registration & Immediate Use
- Call
register_mcp_servicewithname,transport("sse"whendeploy_mcp_containerreturnedmode: "docker", or"stdio"when it returnedmode: "stdio"), andurl_or_command(pass theurlorcommandreturned bydeploy_mcp_container). - Verify that AutoReiv reports
mounted: Truewith discovered tool names (mcp_<name>_<tool>). - Companion runbook is automatically created under
$DATA_DIR/skills/mcp-<name>/SKILL.mdand activated in the current session so you can callmcp_<name>_<tool>on the very next step. - Registration checks the server first [CARD-511]. AutoReiv starts it,
tools/listmust return at least one tool with a valid name and an objectinputSchema, then it calls one tool once (sample_tool, default the first) withsample_argumentsor the minimum built from its schema. For a server that needs secrets, the network, or has side effects, passsample_call: "skip"with askip_reason. - If the result starts `Not registered:`, nothing was saved or mounted. Tell the operator the error, fix the server, and call
register_mcp_serviceagain.
Pitfalls
- Missing HEALTHCHECK: Container deployment will be rejected if the Dockerfile does not specify a
HEALTHCHECK. - Invalid Tool Identifiers: Tool names must use alphanumeric characters and underscores only. Spaces and special characters violate JSON-RPC standards.
- Overlapping Ports: Use port
8765(or another free port above8700); never use8000(AutoReiv's own port).
Done-when
- FastMCP server project is scaffolded and passing all
test_mcp_servercontract checks. - Container is deployed with valid health checking or configured for local stdio transport.
- Server is registered in AutoReiv's canonical store and active in
MCPClientManager. - Discovered
mcp_<name>_*tools are mounted and verified in the current session.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplatform/skills/mcp-engineering/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jacobbweber/autoreiv/mcp-engineering)