get-watcher-config
Retrieve watcher configuration settings to monitor environment changes and automate package installations in MCP servers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/watcher-tools.ts:84-101 (handler)The complete tool registration including the inline handler function for 'get-watcher-config'. It retrieves the watcher configuration from the config service and returns it as formatted JSON.server.tool( "get-watcher-config", {}, async (_, extra) => { const config = configService.getInstallationConfig(); return { content: [ { type: "text", text: JSON.stringify({ watchers: config.watchers }, null, 2) } ] }; } );
- src/server.ts:34-34 (registration)Calls registerWatcherTools which registers the 'get-watcher-config' tool among others on the MCP server.registerWatcherTools(server, configService, watcherService);
- src/server.ts:13-13 (registration)Imports the registerWatcherTools function that contains the 'get-watcher-config' tool registration.import { registerWatcherTools } from './tools/watcher-tools.js';