llm-fusion-mcp/pyproject.toml
Ryan Malloy 3dcb6b94cf
Some checks failed
🚀 LLM Fusion MCP - CI/CD Pipeline / 🔍 Code Quality & Testing (3.10) (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 🔍 Code Quality & Testing (3.11) (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 🔍 Code Quality & Testing (3.12) (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 🛡️ Security Scanning (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 🐳 Docker Build & Push (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 🎉 Create Release (push) Has been cancelled
🚀 LLM Fusion MCP - CI/CD Pipeline / 📢 Deployment Notification (push) Has been cancelled
🌊 Revolutionary MCP Streamable HTTP Transport Implementation
Implements the latest MCP protocol specification (2024-11-05) with modern
streamable HTTP transport, replacing deprecated SSE-only approach!

## 🚀 Major Features Added:
- **MCP Streamable HTTP Transport** - Latest protocol specification
- **Bidirectional Streaming** - Single endpoint with Server-Sent Events
- **OAuth Proxy Integration** - Ready for FastMCP oauth-proxy & remote-oauth
- **Per-User API Key Management** - Framework for user-specific billing
- **Modern HTTP API** - RESTful endpoints for all functionality
- **Comprehensive Testing** - Full transport validation suite

## 🔧 Key Implementation Files:
- `src/llm_fusion_mcp/mcp_streamable_client.py` - Modern MCP client with streaming
- `src/llm_fusion_mcp/server.py` - Full HTTP API server with OAuth hooks
- `test_streamable_server.py` - Complete transport testing suite

## 📡 Revolutionary Endpoints:
- `POST /mcp/` - Direct MCP protocol communication
- `GET /mcp/` - SSE streaming for bidirectional events
- `POST /api/v1/oauth/proxy` - OAuth proxy for authenticated servers
- `POST /api/v1/tools/execute` - Universal tool execution
- `POST /api/v1/generate` - Multi-provider LLM generation

## 🌟 This Creates the FIRST System That:
 Implements latest MCP Streamable HTTP specification
 Bridges remote LLMs to entire MCP ecosystem
 Supports OAuth-protected MCP servers via proxy
 Enables per-user API key management
 Provides concurrent multi-client access
 Offers comprehensive error handling & circuit breakers

🎉 Remote LLMs can now access ANY MCP server through a single,
modern HTTP API with full OAuth and streaming support!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-06 10:43:26 -06:00

84 lines
2.0 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "llm-fusion-mcp"
version = "1.0.0"
description = "Universal Multi-LLM MCP Server - Unified access to Gemini, OpenAI, Anthropic & Grok"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "rpm", email = "rpm@example.com" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"anthropic>=0.66.0",
"fastapi>=0.116.1",
"fastmcp>=2.11.3",
"google-generativeai>=0.8.5",
"httpx>=0.28.1",
"openai>=1.54.0",
"pydantic>=2.11.7",
"python-dotenv>=1.0.0",
"pyyaml>=6.0.2",
"uvicorn>=0.35.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.7.0",
"mypy>=1.8.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
]
[project.scripts]
llm-fusion-mcp = "llm_fusion_mcp.server:main"
[tool.ruff]
line-length = 88
target-version = "py310"
extend-select = ["I", "N", "UP", "RUF"]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "RUF", "B", "C4", "PIE", "SIM", "TCH"]
ignore = ["E501"] # Line length handled by formatter
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]