Skip to main content
Glama

OpenVSP MCP Server

fastapi_app.py926 B
"""Factory for the OpenVSP FastAPI surface.""" from __future__ import annotations from fastapi import FastAPI, HTTPException from .core import OPENVSP_BIN, VSPAERO_BIN, execute_openvsp from .models import OpenVSPRequest, OpenVSPResponse def create_app() -> FastAPI: app = FastAPI( title="OpenVSP MCP Service", version="0.1.0", description="Automate OpenVSP edits and optional VSPAero runs.", ) @app.post("/vsp", response_model=OpenVSPResponse) def run_openvsp(request: OpenVSPRequest) -> OpenVSPResponse: try: return execute_openvsp(request) except RuntimeError as exc: raise HTTPException(status_code=500, detail=str(exc)) from exc @app.get("/health") def health() -> dict[str, str]: return {"status": "ok", "vsp": OPENVSP_BIN, "vspaero": VSPAERO_BIN} return app app = create_app() __all__ = ["create_app", "app"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yevheniikravchuk/openvsp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server