feat(mcp): Implement real StdioMCPTransport for MCP server communication #724

Closed
opened 2026-03-12 04:27:58 +00:00 by freemo · 1 comment
Owner

Summary

Implement a real StdioMCPTransport class that extends the abstract MCPTransport base class in src/cleveragents/mcp/adapter.py. This transport communicates with real MCP servers via stdio (subprocess) using JSON-RPC messages.

Background

The MCPTransport abstract base class exists at src/cleveragents/mcp/adapter.py:108 but has no concrete implementation. All methods raise NotImplementedError. Integration tests currently use MockMCPTransport which violates CONTRIBUTING.md rules.

Acceptance Criteria

  • StdioMCPTransport class implemented extending MCPTransport
  • Subprocess lifecycle management (spawn, monitor, terminate)
  • JSON-RPC message framing over stdin/stdout
  • Works with third-party MCP servers (e.g., @modelcontextprotocol/server-filesystem)
  • Integration tests use real MCP server instead of mock transport
  • All quality gates pass

Metadata

  • Commit Message: feat(mcp): implement StdioMCPTransport for real MCP server communication
  • Branch: feature/mcp-stdio-transport
## Summary Implement a real `StdioMCPTransport` class that extends the abstract `MCPTransport` base class in `src/cleveragents/mcp/adapter.py`. This transport communicates with real MCP servers via stdio (subprocess) using JSON-RPC messages. ## Background The `MCPTransport` abstract base class exists at `src/cleveragents/mcp/adapter.py:108` but has no concrete implementation. All methods raise `NotImplementedError`. Integration tests currently use `MockMCPTransport` which violates CONTRIBUTING.md rules. ## Acceptance Criteria - [ ] `StdioMCPTransport` class implemented extending `MCPTransport` - [ ] Subprocess lifecycle management (spawn, monitor, terminate) - [ ] JSON-RPC message framing over stdin/stdout - [ ] Works with third-party MCP servers (e.g., @modelcontextprotocol/server-filesystem) - [ ] Integration tests use real MCP server instead of mock transport - [ ] All quality gates pass ## Metadata - **Commit Message**: `feat(mcp): implement StdioMCPTransport for real MCP server communication` - **Branch**: `feature/mcp-stdio-transport`
Author
Owner

PM Status: Triage + Closing as Completed

This issue was created by @freemo on 2026-03-12 04:27 UTC and completed 34 minutes later via direct push to master in commit 7d38ea8b (2026-03-12 05:01 UTC).

Triage: Issue was missing all metadata. Applying:

  • Labels: Type/Task, Priority/High, MoSCoW/Must have, Points/3, State/Completed
  • Milestone: v3.2.0 (mock removal initiative)
  • Assignee: @freemo

Verification: Commit message refactor(test): replace mock test doubles with real MCP transport and dependencies implements StdioMCPTransport extending abstract MCPTransport base class. Acceptance criteria addressed.

Process note: This work was pushed directly to master without PR review, violating CONTRIBUTING.md requirements. No PR exists for this issue.

Closing issue as completed.

## PM Status: Triage + Closing as Completed This issue was created by @freemo on 2026-03-12 04:27 UTC and completed 34 minutes later via direct push to master in commit `7d38ea8b` (2026-03-12 05:01 UTC). **Triage**: Issue was missing all metadata. Applying: - Labels: `Type/Task`, `Priority/High`, `MoSCoW/Must have`, `Points/3`, `State/Completed` - Milestone: v3.2.0 (mock removal initiative) - Assignee: @freemo **Verification**: Commit message `refactor(test): replace mock test doubles with real MCP transport and dependencies` implements `StdioMCPTransport` extending abstract `MCPTransport` base class. Acceptance criteria addressed. **Process note**: This work was pushed directly to master without PR review, violating CONTRIBUTING.md requirements. No PR exists for this issue. **Closing issue as completed.**
freemo added this to the v3.2.0 milestone 2026-03-12 20:20:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#724
No description provided.