- as an MCP server, so assistants such as Claude Desktop, Cursor or VS Code can query a workspace;
- as an MCP client, so the Security Agent can use tools from MCP servers the workspace connects.
OASM as an MCP server
The MCP server is not a separate service: it is an endpoint of the core API (/api/mcp, with messages posted to /api/mcp/message), so it uses the same services, scoping and query engine as the console and the agent.
Authentication and scope
A client authenticates with the workspace API key in thex-oasm-api-key header. The key maps the session to its workspace; nothing the client sends can choose another one. The API key is accepted on the MCP endpoint only — it cannot call the REST API. There is no user behind the key, so actions are recorded in the audit log with the API key as the actor. See API keys.
Each MCP session is held by the API process that opened it, expires after 30 minutes of inactivity, and a process keeps at most 100 sessions, dropping the oldest first.
Read-only by construction
The MCP server has no approval flow — there is no human in the loop to ask — so it exposes read-only tools only. A tool is on the MCP surface only if its declaration marks it bothmcp and read-only with a static input schema, and the core API refuses to start if any declaration breaks that rule. The surface is:
describe_attack_surfaceandquery_attack_surface— the full Attack Surface Query language over the inventory,investigate_vulnerability,gather_statistics,enumerate_open_issues,inspect_issue,list_active_workers,review_jobs,list_projects,inspect_project,list_project_assets,list_project_runs,read_project_file,list_workflow_templates,list_pipeline_tools.
OASM as an MCP client
Members withagent.write can connect external MCP servers to the workspace in AI Studio. The configuration is workspace-wide: one set of servers for every member’s agent.
- Transports — SSE and streamable HTTP, with custom headers for authentication. Servers can be switched off without deleting them, and each can be limited to an allow-list of its tools.
- Discovery — at the start of a run, the agent lists the tools of every enabled server. Lists are cached per server configuration, so editing a server’s URL, headers or allowed tools takes effect at once.
- Naming — external tools appear as
<server>_<tool>. A built-in tool always wins a name clash, so an external server cannot replace a platform tool. - Gating — external tools are offered to the main agent in both modes (subagents do not get them), behind the same guard and approval gate as built-in write tools: the built-in deny list and workspace tool rules apply to them, and they ask for approval unless the server marks them read-only and not reaching the outside world.
- Connection test — the ping action refuses private and internal addresses before connecting, so the test cannot be turned into a probe of the internal network.
Related
MCP Server
Connect Claude Desktop, Cursor, VS Code and other clients
Connectors and MCP in AI Studio
Connect external MCP servers to the agent
ASQ for the AI agent and MCP
The query language the MCP surface is built around
