watch_project
Monitor project directories for file changes and automatically update context formats to maintain current codebase understanding.
Instructions
Start monitoring project for changes and auto-update context
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root directory path to watch | |
| context_formats | Yes | Context formats to auto-update | |
| debounce_ms | No | Debounce delay in milliseconds | |
| watch_patterns | No | Glob patterns to watch |
Implementation Reference
- src/tools/watch-project.ts:12-30 (handler)The core handler function for the 'watch_project' tool, which currently returns a placeholder response indicating implementation is pending.export async function watchProject( args: WatchProjectArgs ): Promise<{ content: Array<{ type: string; text: string }> }> { return { content: [ { type: "text", text: JSON.stringify( { message: "Project watching - implementation pending", path: args.path, }, null, 2 ), }, ], }; }
- src/tools/watch-project.ts:5-10 (schema)Type definition (schema) for the input arguments of the watchProject handler.interface WatchProjectArgs { path: string; context_formats: string[]; debounce_ms?: number; watch_patterns?: string[]; }
- src/tools/index.ts:55-56 (registration)Registration of the watch_project tool handler in the switch statement for tool requests.case "watch_project": return await watchProject(args as any);
- src/index.ts:252-280 (schema)Full MCP tool schema registration including inputSchema, description, and required fields in the ListTools response.{ name: "watch_project", description: "Start monitoring project for changes and auto-update context", inputSchema: { type: "object", properties: { path: { type: "string", description: "Root directory path to watch", }, context_formats: { type: "array", items: { type: "string" }, description: "Context formats to auto-update", }, debounce_ms: { type: "number", description: "Debounce delay in milliseconds", default: 1000, }, watch_patterns: { type: "array", items: { type: "string" }, description: "Glob patterns to watch", }, }, required: ["path", "context_formats"], }, },
- src/tools/index.ts:12-12 (registration)Import statement registering the watchProject handler for use in tool dispatch.import { watchProject } from "./watch-project.js";