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:
- 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.
Use Retrieval Prompts
- Invoke
index, orreindexwhen cached content must be reenrolled. - After enrollment completes, invoke
querywith the target URL and task.