Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/mcp/tools-and-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ The corresponding instance method runs through Harper's normal `transactional()`

### `exportTypes` gating

The MCP surface mirrors the public REST surface. A Resource is filtered out of MCP enumeration entirely when its registration sets `exportTypes.mcp = false`:
The MCP surface mirrors the public REST surface. A Resource is filtered out of MCP enumeration entirely when its registration sets `exportTypes.mcp = false`. The `exportTypes` map is supplied to the registration call — `server.resources.set(path, Resource, exportTypes)` — not to `server.http` (which registers HTTP handlers and does not read `exportTypes`), and a `static exportTypes` field on the class is not read either:

```ts
server.http(Resource, { name: 'internal-thing', exportTypes: { mcp: false } });
server.resources.set('internal-thing', Resource, { mcp: false });
```

This is independent of the `http` exportType — the only switch that operators set to scope MCP visibility is `mcp`.
Expand Down