Ajustes na documentação e remanejamento dos folders

This commit is contained in:
2026-06-21 10:25:02 -03:00
parent 8659eb552a
commit fe194a9f2a
10 changed files with 1430 additions and 22 deletions

View File

@@ -31,6 +31,19 @@ TOOLS = {
async def health():
return {"status": "ok", "server": "retail_mcp_server"}
@app.get("/.well-known/mcp-server.json")
async def well_known_manifest():
return {"server_id": "retail", "protocol": "legacy_http", "invoke_endpoint": "/tools/call", "tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}
@app.get("/manifest")
async def manifest():
return await well_known_manifest()
@app.get("/mcp/tools")
async def tools_catalog():
return {"tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}
@app.get("/mcp/tools/list")
async def list_tools():
return {"tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}

View File

@@ -31,6 +31,19 @@ TOOLS = {
async def health():
return {"status": "ok", "server": "telecom_mcp_server"}
@app.get("/.well-known/mcp-server.json")
async def well_known_manifest():
return {"server_id": "telecom", "protocol": "legacy_http", "invoke_endpoint": "/tools/call", "tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}
@app.get("/manifest")
async def manifest():
return await well_known_manifest()
@app.get("/mcp/tools")
async def tools_catalog():
return {"tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}
@app.get("/mcp/tools/list")
async def list_tools():
return {"tools": [{"name": name, **cfg} for name, cfg in TOOLS.items()]}