feat(mcp): add per-server tool allowlist policy module and allowedTools config field

This commit is contained in:
2026-08-27 13:37:46 -06:00
parent ee45e42013
commit 5711432ac4
7 changed files with 831 additions and 1 deletions
+2
View File
@@ -242,6 +242,7 @@ fn build_stdio(cli: &Cli, has_url: bool) -> Result<McpServer> {
url: None,
headers: None,
oauth: None,
allowed_tools: None,
})
}
@@ -300,6 +301,7 @@ fn build_remote(cli: &Cli, transport: McpTransportType, has_command: bool) -> Re
url: Some(url),
headers: (!headers.is_empty()).then_some(headers),
oauth,
allowed_tools: None,
})
}