visionfi.dev

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 mcp key opens /mcp and 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.

connection
# Endpoint (Streamable HTTP)
https://<scout-host>/mcp

# Header
Authorization: Bearer $SCOUT_MCP_KEY
One workspace, two views

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.

StepToolWhat comes back
Open a casecreate_notebookA notebookId to keep for the calls that follow.
Get documents inattach_documentsEach document's classification status.
Pick a reviewlist_recipesThe recipes this tenant may run, with their keys.
Start itrun_recipeA runId, at once. The run continues on the server.
Read the resultget_runThe 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 filesHow
Your codeUpload 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 clientget_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 Appsshow_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.

Links for the person

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

ToolWhat it does
create_notebookCreate a notebook to hold one case's documents and the reviews run over them.
list_notebooksList the tenant's notebooks, newest activity first, with document counts and recent runs.
attach_documentsAttach uploaded documents to a notebook and report each one's classification status.
list_documentsList what a notebook holds: each uploaded file, and the documents it was split into with their types and page ranges.
list_recipesList the review recipes this tenant may run.
run_recipeStart a recipe on a notebook and return at once with a run id.
get_runThe status of a run and, when it is done, its findings.
get_overviewThe library at a glance: totals, and one row per notebook with its status and last activity.
get_upload_linkA link a person opens in their browser to add files to a notebook.
show_upload_boxAn upload box for a notebook, in clients that support MCP Apps.

Next