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
description: 'Allow rule to permit API access (for example "GET:/inventory/**"). Can be repeated. When present, non-matching operations are blocked unless another allow rule matches them.',
27
28
alias: ['a','allow'],
28
29
},
29
-
disableOpenapi: {
30
-
type: 'string',
31
-
description: 'Bundled OpenAPI parts to forbid for execute policy. Repeat to disable one or more spec families such as "dtm". Query still sees all bundled specs.',
32
-
alias: 'd',
33
-
},
34
30
spec: {
35
31
type: 'string',
36
32
description: `Bundled core OpenAPI snapshot to expose to query. Available: ${specs.map((entry)=>`${entry.version} (${entry.label})`).join(', ')}.`,
@@ -203,7 +208,6 @@ export function buildExecutePrelude(
203
208
' "",',
204
209
' "Report this to the user as a connection-level access restriction.",',
205
210
' "If the operation is needed, the MCP allow list for this connection must be updated by whoever manages that configuration.",',
206
-
' ...(disabledApis.length > 0 ? ["", "Disabled bundled OpenAPI parts for execute policy on this connection:", ...disabledApis.map((api) => "- " + api), "Endpoints from those bundled specs are blocked by connection-level bundled OpenAPI policy."] : []),',
207
211
' "",',
208
212
' "Blocked operation:",',
209
213
' "Method: " + method,',
@@ -221,7 +225,6 @@ export function buildExecutePrelude(
221
225
' "",',
222
226
' "Report this to the user as a connection-level access restriction.",',
223
227
' "If the operation is needed, the MCP restrictions for this connection must be updated by whoever manages that configuration.",',
224
-
' ...(disabledApis.length > 0 ? ["", "Disabled bundled OpenAPI parts for execute policy on this connection:", ...disabledApis.map((api) => "- " + api), "Endpoints from those bundled specs are blocked by connection-level bundled OpenAPI policy."] : []),',
225
228
' "",',
226
229
' "Blocked operation:",',
227
230
' "Method: " + method,',
@@ -295,12 +298,11 @@ export function buildExecuteScript(
Copy file name to clipboardExpand all lines: src/codemode/network-permissions.ts
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ export function createNetworkPermissionDecision(
13
13
request: NetworkPermissionRequest,
14
14
restrictions: readonlyRestrictionRule[]=[],
15
15
allowRules: readonlyAllowRule[]=[],
16
-
disabledApis: readonlystring[]=[],
17
16
): NetworkPermissionDecision{
18
17
consttenantHostname=newURL(tenantUrl).hostname
19
18
@@ -45,7 +44,7 @@ export function createNetworkPermissionDecision(
45
44
46
45
return{
47
46
allow: false,
48
-
reason: `Network connect blocked by MCP allow list: no allow rule matched ${normalizedMethod}${pathname}. Configured allow rules: ${allowRules.map((rule)=>rule.source).join(', ')}${disabledApis.length>0 ? `. Disabled bundled OpenAPI parts for execute policy on this connection: ${disabledApis.join(', ')}. Endpoints from those bundled specs are blocked by connection-level bundled OpenAPI policy.` : ''}`,
47
+
reason: `Network connect blocked by MCP allow list: no allow rule matched ${normalizedMethod}${pathname}. Configured allow rules: ${allowRules.map((rule)=>rule.source).join(', ')}`,
0 commit comments