mcp: read-only ShopDB MCP server generated from the OpenAPI spec

A separate tool (not shipped in the app) that exposes a curated set of read
endpoints as MCP tools, so an LLM client can query the asset DB directly. Built
with FastMCP.from_openapi over docs/openapi.json; auth via a scoped PAT
(SHOPDB_TOKEN) or managed X-API-Key. Read-only: only GETs on the curated
allowlist become tools, all writes excluded. Runs anywhere that can reach the
API - never on the air-gapped box. Needs `pip install fastmcp` + testing in that
env (not installed in this repo's venv).
This commit is contained in:
cproudlock
2026-07-30 07:52:53 -04:00
parent b507884ad6
commit f0b5465917
3 changed files with 123 additions and 0 deletions

2
mcp/requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
fastmcp>=2.9
httpx>=0.27