Add create_comment tool to Basecamp integration
Updated mcp_server_cli.py to include the new tool in the CLI and modified README.md to document the new functionality. Adjusted test_cli_server.py to include the create_comment tool in the expected tools list.
This commit is contained in:
@@ -197,6 +197,19 @@ class MCPServer:
|
||||
"required": ["recording_id", "project_id"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "create_comment",
|
||||
"description": "Create a comment on a Basecamp item",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"recording_id": {"type": "string", "description": "The item ID"},
|
||||
"project_id": {"type": "string", "description": "The project ID"},
|
||||
"content": {"type": "string", "description": "The comment content in HTML format"}
|
||||
},
|
||||
"required": ["recording_id", "project_id", "content"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "get_campfire_lines",
|
||||
"description": "Get recent messages from a Basecamp campfire (chat room)",
|
||||
@@ -1015,6 +1028,17 @@ class MCPServer:
|
||||
"count": len(comments)
|
||||
}
|
||||
|
||||
elif tool_name == "create_comment":
|
||||
recording_id = arguments.get("recording_id")
|
||||
project_id = arguments.get("project_id")
|
||||
content = arguments.get("content")
|
||||
comment = client.create_comment(recording_id, project_id, content)
|
||||
return {
|
||||
"status": "success",
|
||||
"comment": comment,
|
||||
"message": "Comment created successfully"
|
||||
}
|
||||
|
||||
elif tool_name == "get_campfire_lines":
|
||||
project_id = arguments.get("project_id")
|
||||
campfire_id = arguments.get("campfire_id")
|
||||
|
||||
Reference in New Issue
Block a user