list_watched
Retrieve real-time status of monitored file paths and their subscriber counts on the MCP Observer Server to manage automated file change notifications effectively.
Instructions
List all currently monitored paths and their subscriber counts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler logic within the call_tool_handler that executes the list_watched tool, listing all currently monitored paths and their subscriber counts.elif name == "list_watched": if not watched: return [ TextContent(type="text", text="No paths are currently being monitored") ] result_lines = [f"Currently monitoring {len(watched)} paths:"] for path, sessions in watched.items(): result_lines.append(f"- {path} ({len(sessions)} subscribers)") return [TextContent(type="text", text="\n".join(result_lines))]
- src/mcp_observer_server/server.py:80-88 (registration)Registration of the list_watched tool in the list_tools() function, including its schema.Tool( name="list_watched", description="List all currently monitored paths and their subscriber counts", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),
- Input schema definition for the list_watched tool (empty object, no properties).Tool( name="list_watched", description="List all currently monitored paths and their subscriber counts", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),