[Autoresearch H2] Initialize MCP Client — src/timmy/mcp_client.py #910

Closed
opened 2026-03-22 13:06:05 +00:00 by perplexity · 1 comment
Collaborator

Parent

Part of #904 (Autoresearch Integration Proposal v2) — Action Item #9

Goal

Create a basic MCP (Model Context Protocol) client that lets the autoresearch loop test and integrate community-built tools without writing wrapper code for each one. Currently tools are tightly coupled to Agno.

Context

The industry is moving to MCP. From #903 (State-of-Art Survey):

  • FastMCP v2.7.0 is the recommended framework (Python + TypeScript)
  • Lightning agent-tools exposes 18 LND tools via MCP
  • Alby MCP connects Lightning wallet to any MCP-compatible LLM
  • Graphiti has an MCP server for Claude/Cursor integration
  • Mem0 has mem0-mcp server available
  • n8n v2.12.2 has MCP webhook integration

Implementation

  1. Create src/timmy/mcp_client.py with basic MCP bridge
  2. Support connecting to local MCP servers (FastMCP pattern)
  3. Tool discovery: list available tools from connected MCP servers
  4. Tool invocation: call MCP tools with typed arguments
  5. Integration with autoresearch: the loop can test new tools as experiment parameters

Deliverable

Basic MCP client that can:

  • Connect to a local MCP server
  • Discover available tools
  • Invoke tools and return results
  • Be used by the autoresearch loop as an experiment variable

Cross-references

  • #903 (State-of-Art Survey — FastMCP v2.7.0, lightning-mcp-server, mem0-mcp, etc.)
  • #904 (Autoresearch Epic)
  • PR #865 (FastAPI Harness + SOUL.md — the API layer MCP would plug into)

Owner

Engineering

## Parent Part of #904 (Autoresearch Integration Proposal v2) — Action Item #9 ## Goal Create a basic MCP (Model Context Protocol) client that lets the autoresearch loop test and integrate community-built tools without writing wrapper code for each one. Currently tools are tightly coupled to Agno. ## Context The industry is moving to MCP. From #903 (State-of-Art Survey): - **FastMCP v2.7.0** is the recommended framework (Python + TypeScript) - **Lightning agent-tools** exposes 18 LND tools via MCP - **Alby MCP** connects Lightning wallet to any MCP-compatible LLM - **Graphiti** has an MCP server for Claude/Cursor integration - **Mem0** has `mem0-mcp` server available - **n8n v2.12.2** has MCP webhook integration ## Implementation 1. Create `src/timmy/mcp_client.py` with basic MCP bridge 2. Support connecting to local MCP servers (FastMCP pattern) 3. Tool discovery: list available tools from connected MCP servers 4. Tool invocation: call MCP tools with typed arguments 5. Integration with autoresearch: the loop can test new tools as experiment parameters ## Deliverable Basic MCP client that can: - Connect to a local MCP server - Discover available tools - Invoke tools and return results - Be used by the autoresearch loop as an experiment variable ## Cross-references - #903 (State-of-Art Survey — FastMCP v2.7.0, lightning-mcp-server, mem0-mcp, etc.) - #904 (Autoresearch Epic) - PR #865 (FastAPI Harness + SOUL.md — the API layer MCP would plug into) ## Owner Engineering
gemini was assigned by Rockachopa 2026-03-22 23:32:01 +00:00
claude added the harnessp1-importantsovereignty labels 2026-03-23 13:55:42 +00:00
Collaborator

Attempted to implement the MCP Client in src/timmy/mcp_client.py. However, pushing the branch gemini/issue-910 failed due to a "User permission denied for writing" error (pre-receive hook declined). This prevents me from creating a pull request. The changes are committed locally.

Attempted to implement the MCP Client in `src/timmy/mcp_client.py`. However, pushing the branch `gemini/issue-910` failed due to a "User permission denied for writing" error (pre-receive hook declined). This prevents me from creating a pull request. The changes are committed locally.
gemini was unassigned by Timmy 2026-03-24 19:33:53 +00:00
Timmy closed this issue 2026-03-24 21:54:47 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#910