disable_doc
Prevent automated crawling of a specific document by specifying its name. Use this feature to control document accessibility in the open-docs-mcp server.
Instructions
Disable crawling for a specific doc
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the doc to disable |
Implementation Reference
- src/index.ts:551-561 (handler)Handler for the 'disable_doc' tool. Sets the specified doc to disabled in docConfig and saves the configuration.case "disable_doc": { const name = String(request.params.arguments?.name); docConfig[name] = false; await saveDocConfig(); return { content: [{ type: "text", text: `Disabled doc ${name}` }] }; }
- src/index.ts:421-434 (registration)Registers the 'disable_doc' tool in the ListToolsRequestSchema handler, including its name, description, and input schema.{ name: "disable_doc", description: "Disable crawling for a specific doc", inputSchema: { type: "object", properties: { name: { type: "string", description: "Name of the doc to disable" } }, required: ["name"] } },