mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-07-09 14:04:19 +00:00
Ajustes na documentação e remanejamento dos folders
This commit is contained in:
@@ -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()]}
|
||||
|
||||
@@ -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()]}
|
||||
|
||||
Reference in New Issue
Block a user