Add global search tool

This commit is contained in:
George Antonopoulos
2025-06-18 08:17:55 +01:00
parent 0d64f6028c
commit 301cc0f961
3 changed files with 118 additions and 1 deletions

View File

@@ -100,6 +100,17 @@ class MCPServer:
"required": ["query"]
}
},
{
"name": "global_search",
"description": "Search projects, todos and campfire messages across all projects",
"inputSchema": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "Search query"}
},
"required": ["query"]
}
},
{
"name": "get_comments",
"description": "Get comments for a Basecamp item",
@@ -369,6 +380,16 @@ class MCPServer:
"results": results
}
elif tool_name == "global_search":
query = arguments.get("query")
search = BasecampSearch(client=client)
results = search.global_search(query)
return {
"status": "success",
"query": query,
"results": results
}
elif tool_name == "get_comments":
recording_id = arguments.get("recording_id")
project_id = arguments.get("project_id")