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, stateless | Each request is handled without a server-side MCP session |
| 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.
The server identifies itself as WDS MCP Server and reports the application assembly version. Clients must support stateless Streamable HTTP; do not depend on a server-maintained session or an Mcp-Session-Id for later calls.
Tools
The MCP Tools catalog documents all registered names, arguments, defaults, return schemas, and behavior flags.
Current capabilities include:
- Manage jobs with WdsGetJobs, WdsGetJobConfig, WdsUpsertJobConfig, and WdsDeleteJob.
- Fetch one page with WdsFetchChunked, then poll and read its content with WdsGetChunk.
- Store and run hierarchical plans with WdsUpsertTraversalConfig, WdsRunTraversal, and the Traversal inspection tools.
- Configure recurring runs with the three
Wds*TraversalScheduletools when Scheduling is enabled. - Search retrieval-indexed content with WdsRetrieve when Retrieval is enabled.
- Remove all data for the default MCP tenant with WdsDeleteTenant.
Prompts
The MCP Prompts catalog documents the seven exact registered prompt names:
assessproposes a Traversal extraction plan;scraperuns an already configured plan and returns its data.resumeandsliced-resumecrawl and summarize a site.indexandreindexenroll content for retrieval;queryanswers a task from that index.
Typical Flows
Fetch One Page
- Persist a job with
WdsUpsertJobConfig. - Call
WdsFetchChunkedwith the job name and absolute URL. - Poll
WdsGetChunkwith the returned task ID until content is available. - Continue reading spans with
startIndexandlengthwhen the page is larger than one response.
Run a Traversal
- Persist
JobConfigwithWdsUpsertJobConfig. - Persist
TraversalConfigwithWdsUpsertTraversalConfig. - Start the run with
WdsRunTraversaland retain itsrunNum. - Poll
WdsGetTraversalRunInfo, inspectWdsGetTraversalRunErrors, and page throughWdsGetTraversalRunDatauntildataCursoris null.
Set root-level TraversalConfig.MaxRuns through WdsUpsertTraversalConfig to limit completed-run history. Starting a new run can remove older completed runs, their results, and unshared task data; save needed results before continuing. Branch configs and returned run-plan snapshots do not contain MaxRuns. This limits run history rather than total storage; see retention limitations.
Use Retrieval Prompts
- Invoke
index, orreindexwhen cached content must be reenrolled. - After enrollment completes, invoke
querywith the target URL and task.