You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A server-wide grant can cover more tools than one catalog describes, so its authority is not limited
36
+
to the ones with generated signatures. `listTools({ search })` searches beyond the bounded preview
37
+
and returns up to 20 compact matches within the shared 5,000-tool / 4 MiB discovery scan;
38
+
`listTools({ name })` loads one exact bounded definition, and `callTool` resolves that name under the
39
+
same bound before dispatch. Every path rejects names outside the
40
+
binding's scope before loading the catalog or contacting the endpoint. Discovery and read results are
41
+
recorded as observations; writes retain the ordinary approval flow.
42
+
43
+
Scoping to one server also shrinks what the agent reads: only that server's tools are rendered as
44
+
signatures, and only as many as the budget describes. Additional tools are discovered on demand
45
+
within the explicit scan limits above; exceeding a limit fails rather than pretending a tool is absent.
36
46
37
47
## Configuration
38
48
@@ -45,6 +55,10 @@ signatures unscoped, and 12 when scoped to one server.
45
55
|`MCP_PORTAL_TRUST_ANNOTATIONS`|`true` to let upstream tool annotations drive auto-approval. Off by default; see below. |
46
56
|`MCP_ALLOW_INSECURE`|`"true"` to disable the endpoint checks entirely: permits `http://`**and** private, loopback, link-local, and cloud-metadata hosts, for the portal and every OAuth URL discovered from it. Local dev only. |
47
57
58
+
The portal must expose upstream tools directly. Use a portal where Code Mode is off or opt-in, or
59
+
append `?codemode=off` when its policy is default-on. Enforced Code Mode is unsupported. Do not add
60
+
an `optimize_context` parameter or opt in to Code Mode on `MCP_PORTAL_URL`.
61
+
48
62
Only `MCP_ALLOW_INSECURE` is set in the repo's `wrangler.jsonc`, pinned to `"false"` so the default
49
63
is explicit rather than merely absent. None of the others is, and a portal URL committed there would
50
64
become the default for every deployment of this repo and would send their users' OAuth flows to
@@ -91,10 +105,10 @@ pinned — which tools:
91
105
92
106
```
93
107
Server · Which server behind this portal to grant. Its tools appear next.
0 commit comments