Skip to main content
Glama
mdz-axo

PT-MCP (Paul Test Man Context Protocol)

by mdz-axo

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
NameRequiredDescriptionDefault
pathYesRoot directory path to watch
context_formatsYesContext formats to auto-update
debounce_msNoDebounce delay in milliseconds
watch_patternsNoGlob patterns to watch

Implementation Reference

  • 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 ), }, ], }; }
  • Type definition (schema) for the input arguments of the watchProject handler.
    interface WatchProjectArgs { path: string; context_formats: string[]; debounce_ms?: number; watch_patterns?: string[]; }
  • Registration of the watch_project tool handler in the switch statement for tool requests.
    case "watch_project": return await watchProject(args as any);
  • 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"], }, },
  • Import statement registering the watchProject handler for use in tool dispatch.
    import { watchProject } from "./watch-project.js";

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mdz-axo/pt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server