Skip to content

Conversation

Siim
Copy link
Contributor

@Siim Siim commented Apr 11, 2025

Add SSE server support with configurable settings and client integration

This pull request extends the Trello MCP server to run in both Claude app mode and SSE server mode, enabling integration with any MCP-compatible client, including Cursor, Visual Studio Code, and other tools.

Key Features

Dual Mode Support

  • Claude App Mode (default): Seamless integration with Claude Desktop

    # Set in .env
    USE_CLAUDE_APP=true
    
    # Run with
    uv run mcp install main.py
  • SSE Server Mode: Universal client support

    # Set in .env
    USE_CLAUDE_APP=false
    MCP_SERVER_PORT=8000
    MCP_SERVER_HOST=0.0.0.0
    
    # Run with
    python main.py

Client Integration Examples

  • Cursor: Add to ~/.cursor/mcp.json

    {
      "mcpServers": {
        "trello": {
          "url": "http://localhost:8000/sse"
        }
      }
    }
  • Python Client: Simple connectivity example

    import asyncio
    import httpx
    
    async def connect_to_mcp_server():
        url = "http://localhost:8000/sse"
        headers = {"Accept": "text/event-stream"}
        
        async with httpx.AsyncClient() as client:
            async with client.stream("GET", url, headers=headers) as response:
                # Process SSE messages...

Benefits

  • Broader accessibility for Trello integration
  • Configurable host/port settings
  • Backward compatible (Claude app mode remains default)
  • Improved documentation with examples

This enhancement maintains all existing functionality while adding new capabilities for different user environments and tooling ecosystems.

@m0xai
Copy link
Owner

m0xai commented Apr 13, 2025

Dear @Siim,

Thank you for your valuable contribution in adding SSE server support with configurable settings and client integration. This enhancement significantly advances the project’s capabilities by introducing real-time communication features.

I appreciate your efforts, especially providing good documentation with an example and look forward to collaborating further to refine this MCP Server.

Best regards,
Kerem Zopcuk (m0xai)

@m0xai m0xai merged commit 8fd1104 into m0xai:master Apr 13, 2025
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.

2 participants