get-watcher-config
Retrieve watcher configuration settings to monitor environment changes and automate package installations in MCP servers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-watcher-config"
}
}Input 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';