mirror of
https://github.com/hansjone/netx.git
synced 2026-10-18 15:00:45 +08:00
feat(mcp): tell skills which tools the token cannot call; cache skill descriptions
Also make the HTTP-error test independent of the developer .env token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
166d2289c3
commit
8f9a64a266
5 changed files with 101 additions and 15 deletions
|
|
@ -463,6 +463,8 @@ def test_http_errors_preserve_status_and_bound_detail(method: str, status: int)
|
|||
client = httpx.Client(transport=transport, base_url="http://example.test")
|
||||
with (
|
||||
patch("netx_api.mcp_remote.asgi_client.get_app", return_value=None),
|
||||
# Independent of the developer's .env: the fallback path needs an outbound token.
|
||||
patch("netx_api.mcp_remote.asgi_client.api_token", return_value="test-token"),
|
||||
patch("netx_api.mcp_remote.asgi_client.httpx.Client", return_value=client),
|
||||
):
|
||||
result = http_json("GET", "/v1/ume/alarms") if method == "GET" else http_post_json("/v1/managed-ne/exec", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue