Docs / MCP
Scout MCP server
A Scout server exposes the engine to agents over the Model Context Protocol. An agent can create a notebook, get documents into it, run a recipe and read the findings. Document text never travels through the conversation.
- Streamable HTTP
- /mcp
- bearer key · mcp scope
Before you start
-
A Scout server with MCP on
MCP is served by the Scout server, beside its API and on the same workspace. Whoever administers the server turns it on.
-
A key with the mcp scope
Keys are scoped. An
mcpkey opens/mcpand its upload and download routes, and cannot drive the admin routes. -
An MCP client
Any client that speaks Streamable HTTP and can send an Authorization header.
Connect your client
Add Scout to your MCP client as an HTTP server. It needs two things: the endpoint and the key.
# Endpoint (Streamable HTTP)
https://<scout-host>/mcp
# Header
Authorization: Bearer $SCOUT_MCP_KEY
A notebook an agent makes over MCP is the same notebook the browser workbench shows on that server. Notebooks created over MCP are stamped with the key that made them.
What a session looks like
The tools are built to be called in this order. Each result names what to pass to the next call.
| Step | Tool | What comes back |
|---|---|---|
| Open a case | create_notebook | A notebookId to keep for the calls that follow. |
| Get documents in | attach_documents | Each document's classification status. |
| Pick a review | list_recipes | The recipes this tenant may run, with their keys. |
| Start it | run_recipe | A runId, at once. The run continues on the server. |
| Read the result | get_run | The phase while it works, then the findings. |
run_recipe does not wait. Poll get_run every 15 to 30 seconds until the run's state is completed, failed, cancelled or interrupted.
Getting documents in
Documents never travel as tool arguments. They go straight to the Scout server, and the agent works with the ids. There are three ways in, depending on who holds the files.
| Who has the files | How |
|---|---|
| Your code | Upload to PUT /v1/notebooks/{notebookId}/documents with the same key: multipart or base64 JSON, at most 25 files. Pass the ids it returns to attach_documents. |
| A person, in any client | get_upload_link returns a link they open in their browser to add files to that one notebook. Then call list_documents. |
| A person, in a client with MCP Apps | show_upload_box shows an upload box in the conversation. The files go from their browser to Scout. |
What the agent sees
Results are findings and citations: flags, pass or fail, and report text, each pointing at the document it came from. A tool result never carries document text. When a finding has a downloadUrl, it serves that result's whole file to a caller holding the same key.
Where the server also serves the browser workbench, results from create_notebook, list_notebooks and get_run carry an openUrl that opens that notebook or that run's output in the workbench.
Tools
| Tool | What it does |
|---|---|
create_notebook | Create a notebook to hold one case's documents and the reviews run over them. |
list_notebooks | List the tenant's notebooks, newest activity first, with document counts and recent runs. |
attach_documents | Attach uploaded documents to a notebook and report each one's classification status. |
list_documents | List what a notebook holds: each uploaded file, and the documents it was split into with their types and page ranges. |
list_recipes | List the review recipes this tenant may run. |
run_recipe | Start a recipe on a notebook and return at once with a run id. |
get_run | The status of a run and, when it is done, its findings. |
get_overview | The library at a glance: totals, and one row per notebook with its status and last activity. |
get_upload_link | A link a person opens in their browser to add files to a notebook. |
show_upload_box | An upload box for a notebook, in clients that support MCP Apps. |