Initial commit: xmcp — OpenAPI-to-MCP server
MCP server generated from an OpenAPI document with FastMCP v4. Configurable via env vars (spec URL/file, transport stdio/http, host, port, API token), built with uv, multi-stage Dockerfile with non-root runtime.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
xmcp:
|
||||
build:
|
||||
context: .
|
||||
image: xmcp:latest
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
MCP_TRANSPORT: http
|
||||
MCP_HOST: 0.0.0.0
|
||||
MCP_PORT: "8000"
|
||||
ports:
|
||||
- "${MCP_PORT:-8000}:${MCP_PORT:-8000}"
|
||||
restart: unless-stopped
|
||||
# To serve a locally stored OpenAPI document, mount it and point
|
||||
# OPENAPI_SPEC_URL at the in-container path:
|
||||
# volumes:
|
||||
# - ./openapi.json:/spec/openapi.json:ro
|
||||
Reference in New Issue
Block a user