Scrub HydraProxy from agent-facing API + MCP
- /api/v1/hydraproxy/info -> /api/v1/mobile/info (old 404s) - MCP tool hydraproxy_account -> mobile_account, docstring reworded - admin/internal names (config, DB, admin routes, module) unchanged
This commit is contained in:
2
app.py
2
app.py
@@ -565,7 +565,7 @@ def hydraproxy_page():
|
||||
account=account, err=err, user=current_user())
|
||||
|
||||
|
||||
@app.route("/api/v1/hydraproxy/info")
|
||||
@app.route("/api/v1/mobile/info")
|
||||
def api_hydraproxy_info():
|
||||
try:
|
||||
account = hydraproxy.get_account_info()
|
||||
|
||||
@@ -92,9 +92,9 @@ def list_dedicated_locations(product: int = 9) -> str:
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def hydraproxy_account() -> str:
|
||||
"""HydraProxy account info, balance, locations, and broker catalog (broker-fulfilled provider)."""
|
||||
return json.dumps(_get("/api/v1/hydraproxy/info"), indent=2)
|
||||
def mobile_account() -> str:
|
||||
"""Mobile tier account info — balance, locations, and the 4G/static-mobile catalog."""
|
||||
return json.dumps(_get("/api/v1/mobile/info"), indent=2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user