feat: MCP server pro AI agenty (čtení menu)

POST /mcp (bezstavový Streamable HTTP) s nástroji list_restaurants
a get_menus. Agent je samostatný klient: ověřuje se jen tokenem
MCP_TOKEN, ne webovým JWT ani hlavičkou z proxy; token nefunguje na /api.
Bez MCP_TOKEN je MCP vypnuté, kratší token než 32 znaků = server nenaběhne.
This commit is contained in:
batmanisko committed 2026-11-12 10:27:48 +01:00
1 parent 3c08f71f63
commit ccc19e5ff4
9 files changed
+575 -5

No files matched your search

+3 -1
View File
@@ -30,6 +30,7 @@
"typescript": "^5.9.3"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.32.1",
"@sentry/node": "^10.65.0",
"@socket.io/redis-adapter": "^8.3.0",
"axios": "^1.13.2",
@@ -42,6 +43,7 @@
"redis": "^5.9.0",
"simple-json-db": "^2.0.0",
"socket.io": "^4.6.1",
"web-push": "^3.6.7"
"web-push": "^3.6.7",
"zod": "^4.6.7"
}
}