Skip to main content
Glama

hooks_stop_watching

Stop file system watching to manage resources effectively within the CastPlan MCP server, optimizing AI assistant performance for context-aware development support.

Instructions

Stop file system watching

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'hooks_stop_watching'. It calls HooksService.stopFileWatching() to stop file system watching and returns a standardized success response.
    tools.set('hooks_stop_watching', async () => { await hooksService.stopFileWatching(); return { success: true, message: 'File watching stopped' }; });
  • The input schema definition for the 'hooks_stop_watching' tool, specifying no required input parameters.
    { name: 'hooks_stop_watching', description: 'Stop file system watching', inputSchema: { type: 'object', properties: {}, required: [] } }
  • The underlying helper method in HooksService that iterates over all active file watchers, closes them, removes from the map, and notifies the system.
    async stopFileWatching(): Promise<void> { const watcherEntries = Array.from(this.watchers.entries()); for (const [name, watcher] of watcherEntries) { await watcher.close(); this.watchers.delete(name); } await this.notify('system', 'File watching stopped'); }
  • Registration of the 'hooks_stop_watching' tool handler into the tools Map within the registerHooksTools function.
    tools.set('hooks_stop_watching', async () => { await hooksService.stopFileWatching(); return { success: true, message: 'File watching stopped' }; });

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/Ghostseller/CastPlan_mcp'

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