Skip to content

feat: add fastapi-mcp-client extension (fixes #80) - #197

Open
emberb170d wants to merge 1 commit into
Create-Python-App:mainfrom
emberb170d:feat/fastapi-mcp-client-issue-80
Open

feat: add fastapi-mcp-client extension (fixes #80)#197
emberb170d wants to merge 1 commit into
Create-Python-App:mainfrom
emberb170d:feat/fastapi-mcp-client-issue-80

Conversation

@emberb170d

Copy link
Copy Markdown
Contributor

Problem

MCP (Model Context Protocol) is a reusable capability for chat and multi-agent apps. CPA needs a focused MCP client extension that can be composed with FastAPI AI apps.

Solution

Create extensions/fastapi-mcp-client compatible with fastapi-backend.

Changes Made

  • Added extensions/fastapi-mcp-client/ directory with complete extension structure
  • Created app/core/mcp_client.py with typed MCP client implementation
  • Added documentation in template/docs/MCP_CLIENT_GUIDE.md
  • Included test suite in tests/
  • Updated extension metadata in pyproject.toml

Key Features

  • MCP server configuration via mcp_servers.yaml or env-driven equivalent
  • Typed tool registry/service for discovering and using MCP tools
  • Environment-based configuration support
  • FastAPI integration with TestClient-verified endpoints

This extension addresses issue #80 by providing a reusable MCP client capability that can be composed with FastAPI AI applications without duplicating MCP logic.

Fixes #80

@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 94162f50-a647-4779-b7ee-4f2745bb93c5


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add fastapi-mcp-client extension

1 participant