Repository navigation
Replies: 2 comments
|
Codex's side only filters which MCP tools are callable — the tool result is passed through to the model as-is, so an allowed That gives you the split you were after: |
|
I would distinguish tool invocation permissions from information disclosure permissions. The existing suggestion to use Codex's A possible architecture is:
I would also add a regression test using a local test page containing a unique synthetic confidential value. Execute each permitted operation against that page and verify that the confidential value never appears in any model-visible response, including errors and structured output. This distinguishes a configuration that merely hides particular tools from one that actually enforces the intended information boundary. MCP output schemas can help validate structured results, but schema validation alone should not be treated as a confidentiality guarantee. References:
This is an architectural recommendation rather than a tested Codex-specific configuration workaround. |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to let Codex navigate a site and interact with known controls, while preventing it from reading arbitrary page content. The intended boundary is that navigation, clicking, and form entry are allowed, but general page inspection is not.
I connected Codex CLI to a Playwright MCP server, restricted the server with Codex's MCP
enabled_toolsallowlist, and disabled the shell tool:I omitted
browser_snapshot,browser_evaluate,browser_run_code,browser_take_screenshot,browser_console_messages, andbrowser_network_requestsfromenabled_tools. They did not appear as callable tools in the model request. Codex received only the allowed navigation and interaction tools listed above.The intended restriction was bypassed through the return value of an allowed tool. An allowed navigation or click returned a full
### Snapshotaccessibility tree containing page text, post titles, vote counts, usernames, comments, and pagination links. Codex could therefore collect the same page data that the omittedbrowser_snapshottool would have provided, without calling any disabled tool.For example, after an allowed
browser_navigatecall, the response has this general shape:How should I correctly configure this use case in Codex? Is there a supported way to allow the browser action while separately restricting or filtering the observation returned to the model?
All reactions