google-trends: fix broken MCP handshake and RSS articles (v2 / 1.1.0)
The server never implemented `initialize`, so every MCP client got
-32601 to its opening request and aborted before listing a tool. Also
missing: `notifications/initialized` and `ping`; `tools/list` returned a
bare array instead of {"tools": [...]}; notifications (no `id`) got a
full response written to stdout.
Rewritten to the shape the other local connectors already use (TOOLS
manifest + TOOL_DISPATCH, `_text_result` with isError, handle_request
returning None for notifications).
Also fixed:
- include_articles always returned nothing: trendspyg emits
`news_articles`, the mapper read `articles`. explore_link kept too.
- fn(**arguments) turned a bad argument into -32603; handlers now take
an args dict and coerce/clamp.
- errors were returned as successful results; now isError: true, with
trendspyg's typed exceptions translated into actionable messages.
- browser calls could run ~100s (10 retries x 8s); capped at ~25s.
- verify.py shipped but connector.json declared no `verify` block; wired
it and upgraded the script to a real RSS fetch.
- explore mutated trendspyg's ExploreEnvelope; dropped the no-op
output_format param; trendspyg pinned >=1.6.0 and imported defensively.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"id": "google-trends",
|
||||
"name": "Google Trends",
|
||||
"version": 1,
|
||||
"version_string": "1.0.0",
|
||||
"version_release_date": "2026-07-22",
|
||||
"version": 2,
|
||||
"version_string": "1.1.0",
|
||||
"version_release_date": "2026-08-24",
|
||||
"type": "mcp_local",
|
||||
"scope": "global",
|
||||
"launch_command": "python3 google_trends_mcp.py",
|
||||
@@ -11,10 +11,11 @@
|
||||
"requires": ["PYTHON"],
|
||||
"tags": ["trends", "mcp", "local", "google", "search", "analytics"],
|
||||
"dependencies": [
|
||||
"trendspyg>=0.7.0"
|
||||
"trendspyg>=1.6.0"
|
||||
],
|
||||
"setup_instructions": [
|
||||
"Install dependencies: pip install -r requirements.txt",
|
||||
"The 'explore' and 'get_interest_over_time' tools also need Chrome installed (Selenium)",
|
||||
"Run: python3 google_trends_mcp.py"
|
||||
],
|
||||
"docs": [
|
||||
@@ -27,6 +28,10 @@
|
||||
"auth": {
|
||||
"type": "none"
|
||||
},
|
||||
"verify": {
|
||||
"command": "python3 verify.py",
|
||||
"timeout_secs": 20
|
||||
},
|
||||
"mcp_config": {
|
||||
"command": "python3",
|
||||
"args": ["google_trends_mcp.py"]
|
||||
|
||||
Reference in New Issue
Block a user