MCP Server

The WDS API Server exposes a Model Context Protocol endpoint for IDEs and agentic systems. Its current surface consists of 21 registered tools for job, download, Traversal, scheduling, tenant, and retrieval workflows, plus seven registered prompts that compose those tools into common tasks. See Plans for feature availability.

Connect to the MCP Server

Deploy the WDS API Server, then connect an MCP client to its HTTP endpoint.

Parameter Value Description
Name wds Example client registration name used by the prompt commands in this documentation
Transport Streamable HTTP MCP transport exposed by the API Server
URL http://[host:port]/mcp Use http://localhost:2807/mcp for the default local Docker port

A deployment mounted below a base path must prepend that path to /mcp. For example, a base path of /wds produces /wds/mcp.

For Visual Studio Code setup, see its MCP server documentation.

Tools

The MCP Tools catalog documents all registered names, arguments, defaults, return schemas, and behavior flags.

Current capabilities include:

Prompts

The MCP Prompts catalog documents the seven exact registered prompt names:

Typical Flows

Fetch One Page

  1. Persist a job with WdsUpsertJobConfig.
  2. Call WdsFetchChunked with the job name and absolute URL.
  3. Poll WdsGetChunk with the returned task ID until content is available.
  4. Continue reading spans with startIndex and length when the page is larger than one response.

Run a Traversal

  1. Persist JobConfig with WdsUpsertJobConfig.
  2. Persist TraversalConfig with WdsUpsertTraversalConfig.
  3. Start the run with WdsRunTraversal and retain its runNum.
  4. Poll WdsGetTraversalRunInfo, inspect WdsGetTraversalRunErrors, and page through WdsGetTraversalRunData until dataCursor is null.

Use Retrieval Prompts

  1. Invoke index, or reindex when cached content must be reenrolled.
  2. After enrollment completes, invoke query with the target URL and task.

Please rotate your device to landscape mode

This documentation is specifically designed with a wider layout to provide a better reading experience for code examples, tables, and diagrams.
Rotating your device horizontally ensures you can see everything clearly without excessive scrolling or resizing.

Return to Web Data Source Home