Skip to content

fix: add missing HostedMCPServer class for MCP server implementations#816

Merged
MervinPraison merged 8 commits intomainfrom
claude/issue-813-20250711_070340
Jul 11, 2025
Merged

fix: add missing HostedMCPServer class for MCP server implementations#816
MervinPraison merged 8 commits intomainfrom
claude/issue-813-20250711_070340

Conversation

@MervinPraison
Copy link
Copy Markdown
Owner

@MervinPraison MervinPraison commented Jul 11, 2025

User description

This PR fixes the ImportError when trying to import HostedMCPServer from praisonaiagents.mcp.

Changes

  • Created HostedMCPServer base class in mcp/hosted_server.py
  • Added HostedMCPServer to module exports in init.py
  • Added starlette>=0.27.0 to MCP optional dependencies
  • Fixes ImportError when using mcp_server_latency_example.py

Resolves #813

Generated with Claude Code


PR Type

Bug fix


Description

  • Add missing HostedMCPServer class to fix ImportError

  • Implement base class for hosted MCP servers

  • Add starlette dependency for SSE transport

  • Export new class in module __init__.py


Changes diagram

flowchart LR
  A["ImportError"] --> B["Create HostedMCPServer class"]
  B --> C["Add to __init__.py exports"]
  B --> D["Add starlette dependency"]
  C --> E["Fix mcp_server_latency_example.py"]
  D --> E
Loading

Changes walkthrough 📝

Relevant files
Bug fix
__init__.py
Export HostedMCPServer class in module                                     

src/praisonai-agents/praisonaiagents/mcp/init.py

  • Import HostedMCPServer from hosted_server module
  • Add HostedMCPServer to __all__ exports list
  • +2/-1     
    Enhancement
    hosted_server.py
    Implement HostedMCPServer base class                                         

    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py

  • Create new HostedMCPServer abstract base class
  • Implement SSE transport support with Starlette
  • Add tool registration and request handling methods
  • Support both sync and async server startup
  • +190/-0 
    Dependencies
    pyproject.toml
    Add starlette dependency for MCP                                                 

    src/praisonai-agents/pyproject.toml

    • Add starlette>=0.27.0 to MCP optional dependencies
    +2/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Summary by CodeRabbit

    • New Features

      • Introduced a hosted MCP server for PraisonAI Agents, allowing users to easily create and run custom tool servers with support for Server-Sent Events (SSE) and configurable server parameters.
    • Chores

      • Updated example usage to import the new hosted MCP server from the local module.
      • Incremented the project version number.

    - Created HostedMCPServer base class in mcp/hosted_server.py
    - Added HostedMCPServer to module exports in __init__.py
    - Added starlette>=0.27.0 to MCP optional dependencies
    - Fixes ImportError when using mcp_server_latency_example.py
    
    Resolves #813
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    @coderabbitai
    Copy link
    Copy Markdown
    Contributor

    coderabbitai bot commented Jul 11, 2025

    Walkthrough

    A new HostedMCPServer implementation was introduced in examples/python/custom_tools/hosted_server.py, providing a FastMCP/Starlette-based server for PraisonAI Agents. The mcp_server_latency_example.py example was updated to import this new local implementation. The project version was incremented in pyproject.toml.

    Changes

    File(s) Change Summary
    examples/python/custom_tools/hosted_server.py Added new HostedMCPServer class implementing a hosted MCP server with FastMCP and Starlette.
    examples/python/custom_tools/mcp_server_latency_example.py Changed import of HostedMCPServer to use the new local hosted_server.py module.
    src/praisonai-agents/pyproject.toml Incremented project version from 0.0.122 to 0.0.123.

    Sequence Diagram(s)

    sequenceDiagram
        participant User
        participant HostedMCPServer
        participant FastMCP
        participant Starlette
        participant Uvicorn
    
        User->>HostedMCPServer: start() or start_async()
        HostedMCPServer->>Starlette: create_app()
        HostedMCPServer->>FastMCP: initialize MCP server
        HostedMCPServer->>Uvicorn: run Starlette app
        User->>HostedMCPServer: send request (via SSE or HTTP)
        HostedMCPServer->>FastMCP: handle_request()
        FastMCP-->>HostedMCPServer: response
        HostedMCPServer-->>User: return response
    
    Loading

    Assessment against linked issues

    Objective Addressed Explanation
    Fix import error for HostedMCPServer in mcp_server_latency_example.py (#813)

    Possibly related PRs

    • Add MCP SSE tooling example #596: Adds a Python hosted MCP SSE server implementation and example usage; closely related as both PRs deal with MCP SSE server/client tooling.

    Suggested labels

    Review effort 2/5, codex

    Poem

    A server now hosted, with tools you can wield,
    FastMCP and Starlette, in Python revealed.
    No more import errors, the code runs with glee—
    Latency tested, as smooth as can be!
    🐇✨
    Version hopped up, the future looks bright,
    PraisonAI Agents, now working just right!

    ✨ Finishing Touches
    • 📝 Generate Docstrings

    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
    🪧 Tips

    Chat

    There are 3 ways to chat with CodeRabbit:

    • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
      • I pushed a fix in commit <commit_id>, please review it.
      • Explain this complex logic.
      • Open a follow-up GitHub issue for this discussion.
    • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
      • @coderabbitai explain this code block.
      • @coderabbitai modularize this function.
    • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
      • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
      • @coderabbitai read src/utils.ts and explain its main purpose.
      • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
      • @coderabbitai help me debug CodeRabbit configuration file.

    Support

    Need help? Create a ticket on our support page for assistance with any issues or questions.

    Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

    CodeRabbit Commands (Invoked using PR comments)

    • @coderabbitai pause to pause the reviews on a PR.
    • @coderabbitai resume to resume the paused reviews.
    • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
    • @coderabbitai full review to do a full review from scratch and review all the files again.
    • @coderabbitai summary to regenerate the summary of the PR.
    • @coderabbitai generate docstrings to generate docstrings for this PR.
    • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
    • @coderabbitai resolve resolve all the CodeRabbit review comments.
    • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
    • @coderabbitai help to get help.

    Other keywords and placeholders

    • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
    • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
    • Add @coderabbitai anywhere in the PR title to generate the title automatically.

    CodeRabbit Configuration File (.coderabbit.yaml)

    • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
    • Please see the configuration documentation for more information.
    • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

    Documentation and Community

    • Visit our Documentation for detailed information on how to use CodeRabbit.
    • Join our Discord Community to get help, request features, and share feedback.
    • Follow us on X/Twitter for updates and announcements.

    @MervinPraison
    Copy link
    Copy Markdown
    Owner Author

    @claude review this pull request and do a detailed analysis and fix this if the existing code doesn't have the solution implemented. Making sure it has backward compatibility, no existing features removed. After making those changes, again use multi agents to review the applied changes. Use @web to search if you dont know any information or to find the latest documentation or to find the latest version. Run the code if you think you need to run it to test it. Minimal code change to start with if required any changes.

    Copy link
    Copy Markdown
    Contributor

    @gemini-code-assist gemini-code-assist bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Summary of Changes

    Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

    This pull request introduces a new base class for implementing and hosting custom MCP (Multi-Agent Communication Protocol) servers within the praisonaiagents framework. The primary goal is to provide a robust and extensible foundation for server-side MCP operations, addressing a previous import issue and ensuring all necessary dependencies are correctly managed.

    Highlights

    • New Hosted MCP Server Base Class: Introduced a new abstract base class, HostedMCPServer, located in src/praisonai-agents/praisonaiagents/mcp/hosted_server.py. This class provides a foundational structure for building custom MCP servers, including capabilities for handling requests, defining tools, and supporting Server-Sent Events (SSE) transport.
    • Import Error Fix: Resolved an ImportError that occurred when attempting to import HostedMCPServer from the praisonaiagents.mcp module. This was fixed by explicitly exporting the new class in src/praisonai-agents/praisonaiagents/mcp/__init__.py.
    • Dependency Update: Added starlette>=0.27.0 to the mcp optional dependencies in src/praisonai-agents/pyproject.toml. This ensures that the necessary web framework components for the HostedMCPServer are installed when the praisonaiagents[mcp] extra is used.
    Using Gemini Code Assist

    The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

    Invoking Gemini

    You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

    Feature Command Description
    Code Review /gemini review Performs a code review for the current pull request in its current state.
    Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
    Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
    Help /gemini help Displays a list of available commands.

    Customization

    To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

    Limitations & Feedback

    Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

    You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

    Footnotes

    1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

    @MervinPraison
    Copy link
    Copy Markdown
    Owner Author

    @claude review again and make sure the initial issue gets fixed with minimal code change.

    @claude
    Copy link
    Copy Markdown
    Contributor

    claude bot commented Jul 11, 2025

    Claude finished @MervinPraison's task —— View job


    Todo List

    • Read CLAUDE.md for repo-specific instructions
    • Review the implementation of HostedMCPServer class
    • Check the original issue cannot import HostedMCPServer from praisonaiagents.mcp (Latency test) #813 for context
    • Verify the fix properly addresses the ImportError
    • Check for backward compatibility issues
    • Review code quality and best practices
    • Test the implementation if possible
    • Apply minimal fixes if needed
    • Use multi-agent review for any changes
    • Provide comprehensive review feedback

    Final Review Summary

    ✅ PR Approved with Minor Improvements Applied

    This PR successfully fixes the ImportError from issue #813 by adding the missing HostedMCPServer class. I've made two minimal improvements to enhance the code quality:

    Changes Made:

    1. Removed unnecessary imports - Cleaned up unused ABC and abstractmethod imports since the class isn't abstract
    2. Added error handling - Added proper error checking when initializing the MCP server with a helpful error message

    Multi-Agent Review Results:

    Agent Rating Key Findings
    🔐 Security 7/10 SSE endpoint needs auth consideration for production use
    🚀 Performance 6/10 Sync tool wrapping could use executor for better async
    📚 Best Practices 8/10 Well-documented, clean code structure
    🧪 Testing 4/10 Needs unit tests (can be added in future PR)
    🔗 Integration 9/10 Excellent compatibility with existing MCP ecosystem

    Verification:

    • ✅ Import error is fixed - from praisonaiagents.mcp import HostedMCPServer works
    • ✅ Backward compatible - No breaking changes to existing code
    • ✅ Dependencies properly specified in pyproject.toml
    • ✅ Example in mcp_server_latency_example.py will work correctly

    Recommendation:

    This PR is ready to merge. It provides the minimal fix needed for issue #813 without introducing breaking changes. Future enhancements (auth, better async handling, tests) can be addressed in separate PRs.

    The implementation provides a solid foundation for creating hosted MCP servers with SSE transport, enabling the example code and other use cases that require server-side MCP functionality.


    Commit: aaae248
    Branch: claude/issue-813-20250711_070340

    @qodo-code-review
    Copy link
    Copy Markdown

    You are nearing your monthly Qodo Merge usage quota. For more information, please visit here.

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    🎫 Ticket compliance analysis ✅

    813 - PR Code Verified

    Compliant requirements:

    • Fix ImportError when importing HostedMCPServer from praisonaiagents.mcp
    • Define the missing HostedMCPServer class that was never implemented

    Requires further human verification:

    • Make mcp_server_latency_example.py work without import errors
    ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    Import Dependencies

    The implementation relies on multiple external dependencies (FastMCP, Server, Starlette, SseServerTransport, uvicorn) that may not be available. The try-except block catches ImportError but the error message suggests installing with pip install praisonaiagents[mcp], which may not include all required dependencies.

    try:
        from mcp.server.fastmcp import FastMCP
        from mcp.server import Server
        from starlette.applications import Starlette
        from starlette.requests import Request
        from starlette.routing import Mount, Route
        from mcp.server.sse import SseServerTransport
        import uvicorn
    except ImportError:
        raise ImportError(
            "MCP server dependencies not installed. "
            "Please install with: pip install praisonaiagents[mcp]"
        )
    Incomplete Implementation

    The handle_request method returns a basic response structure but doesn't actually process MCP requests or integrate with the FastMCP server. This may not work with real MCP clients expecting proper protocol handling.

    def handle_request(self, request_data: Dict[str, Any]) -> Dict[str, Any]:
        """
        Handle incoming MCP requests.
    
        This method can be overridden in subclasses to add custom request handling,
        such as latency tracking, authentication, or request modification.
    
        Args:
            request_data: The incoming request data
    
        Returns:
            Response data
        """
        # Default implementation - can be overridden
        method = request_data.get('method', '')
        request_id = request_data.get('id', 'unknown')
    
        logger.debug(f"Handling request {request_id}: {method}")
    
        # Basic response structure
        response = {
            'id': request_id,
            'jsonrpc': '2.0',
            'result': {}
        }
    
        return response
    Missing Dependencies

    The pyproject.toml adds starlette and uvicorn but may be missing other dependencies like fastmcp that are imported in the code. This could lead to runtime import errors even with the mcp optional dependencies installed.

    mcp = [
        "mcp>=1.6.0",
        "fastapi>=0.115.0",
        "uvicorn>=0.34.0",
        "starlette>=0.27.0"
    ]

    @claude
    Copy link
    Copy Markdown
    Contributor

    claude bot commented Jul 11, 2025

    Claude finished @MervinPraison's task —— View job


    Code Review Summary

    I've thoroughly reviewed this PR to ensure it fixes issue #813 with minimal code changes. Here's my analysis:

    Todo List

    ✅ The PR Successfully Fixes the ImportError

    The changes properly address the missing HostedMCPServer class that was causing the ImportError. The implementation:

    1. Creates the missing class in src/praisonai-agents/praisonaiagents/mcp/hosted_server.py
    2. Exports it correctly in src/praisonai-agents/praisonaiagents/mcp/__init__.py
    3. Adds required dependencies to pyproject.toml

    📋 Review Findings

    ✅ What's Working Well:

    1. Minimal code changes: The PR follows the principle of minimal changes by only adding what's necessary
    2. Proper base class design: The HostedMCPServer is correctly designed as an abstract base class meant to be extended
    3. Example compatibility: The implementation works with the mcp_server_latency_example.py file that expects to extend this class
    4. Dependency management: Adds starlette>=0.27.0 which is required for SSE transport

    ⚠️ Minor Clarifications:

    1. FastMCP Import: The import from mcp.server.fastmcp import FastMCP is correct. FastMCP is part of the mcp>=1.6.0 package (not a separate package), which is already in the dependencies. This is confirmed by its usage in other files like weather_server.py.

    2. Basic handle_request Implementation: The simple stub implementation is intentional and appropriate. This is a base class designed to be extended (as shown in the example where it's subclassed to add latency tracking).

    ✅ Recommendation: APPROVED

    This PR successfully fixes the ImportError issue with minimal, appropriate changes. The implementation:

    • Solves the immediate problem (missing HostedMCPServer class)
    • Maintains backward compatibility
    • Follows proper abstraction patterns
    • Includes all necessary dependencies

    No additional changes are needed. The PR is ready to merge.

    @qodo-code-review
    Copy link
    Copy Markdown

    qodo-code-review bot commented Jul 11, 2025

    You are nearing your monthly Qodo Merge usage quota. For more information, please visit here.

    PR Code Suggestions ✨

    Explore these optional code suggestions:

    CategorySuggestion                                                                                                                                    Impact
    General
    Avoid accessing private library attributes

    Accessing private attribute _mcp_server from FastMCP creates tight coupling and
    may break if the library changes its internal structure. Use the public API or
    proper initialization methods instead.

    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py [123-124]

     if not self._server:
    -    self._server = self.mcp._mcp_server
    +    # Use public API instead of private attribute access
    +    self._server = Server(self.name)
    +    # Or check FastMCP documentation for proper server access
    • Apply / Chat
    Suggestion importance[1-10]: 8

    __

    Why: The suggestion correctly points out that accessing the private attribute _mcp_server creates tight coupling, making the code brittle and prone to breaking with future library updates.

    Medium
    Add error handling for connections

    Add proper error handling around the SSE connection and server run operations.
    Network connections can fail unexpectedly, and the current implementation could
    crash the server without graceful error recovery.

    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py [128-139]

     async def handle_sse(request: Request) -> None:
         logger.debug(f"SSE connection from {request.client}")
    -    async with sse.connect_sse(
    -        request.scope,
    -        request.receive,
    -        request._send,
    -    ) as (read_stream, write_stream):
    -        await self._server.run(
    -            read_stream,
    -            write_stream,
    -            self._server.create_initialization_options(),
    -        )
    +    try:
    +        async with sse.connect_sse(
    +            request.scope,
    +            request.receive,
    +            request._send,
    +        ) as (read_stream, write_stream):
    +            await self._server.run(
    +                read_stream,
    +                write_stream,
    +                self._server.create_initialization_options(),
    +            )
    +    except Exception as e:
    +        logger.error(f"SSE connection error: {e}")
    +        raise
    • Apply / Chat
    Suggestion importance[1-10]: 7

    __

    Why: This is a valid suggestion that improves the server's robustness by adding error handling for SSE connections, preventing potential crashes from network issues.

    Medium
    Remove unused request handler method

    The handle_request method is not integrated with the MCP server flow and appears
    unused. Consider removing this method or properly integrating it with the SSE
    transport handling to avoid confusion about its purpose.

    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py [59-85]

    -def handle_request(self, request_data: Dict[str, Any]) -> Dict[str, Any]:
    -    """
    -    Handle incoming MCP requests.
    -    
    -    This method can be overridden in subclasses to add custom request handling,
    -    such as latency tracking, authentication, or request modification.
    -    
    -    Args:
    -        request_data: The incoming request data
    -        
    -    Returns:
    -        Response data
    -    """
    -    # Default implementation - can be overridden
    -    method = request_data.get('method', '')
    -    request_id = request_data.get('id', 'unknown')
    -    
    -    logger.debug(f"Handling request {request_id}: {method}")
    -    
    -    # Basic response structure
    -    response = {
    -        'id': request_id,
    -        'jsonrpc': '2.0',
    -        'result': {}
    -    }
    -    
    -    return response
    +# Remove this method entirely or integrate it properly with the MCP server flow
    +# The current implementation creates a disconnected request handler
    • Apply / Chat
    Suggestion importance[1-10]: 6

    __

    Why: The suggestion correctly identifies that the handle_request method is not called within the class, and its integration with the MCP flow is unclear, which could confuse developers.

    Low
    • Update

    cursor[bot]

    This comment was marked as outdated.

    Copy link
    Copy Markdown
    Contributor

    @gemini-code-assist gemini-code-assist bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Code Review

    This pull request introduces the HostedMCPServer class to fix an ImportError, providing a base for creating hosted MCP servers. The implementation is a good start, but I've identified a few areas for improvement. My main concerns are a critical bug that will cause a runtime error due to incorrect usage of the Starlette API, and a dependency on a private attribute of an external library, which could be fragile. I've also pointed out an apparently unused method and suggested using standard logging instead of print statements for better integration in larger applications.

    Comment on lines +128 to +139
    async def handle_sse(request: Request) -> None:
    logger.debug(f"SSE connection from {request.client}")
    async with sse.connect_sse(
    request.scope,
    request.receive,
    request._send,
    ) as (read_stream, write_stream):
    await self._server.run(
    read_stream,
    write_stream,
    self._server.create_initialization_options(),
    )
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    critical

    The handle_sse endpoint uses request._send, but the starlette.requests.Request object does not have a _send attribute. This will cause a runtime AttributeError. For low-level ASGI integrations like this, you should use a raw ASGI endpoint with the signature async def(scope, receive, send) instead of a Starlette Request object. The SseServerTransport.connect_sse method seems to expect the raw ASGI callables.

    Suggested change
    async def handle_sse(request: Request) -> None:
    logger.debug(f"SSE connection from {request.client}")
    async with sse.connect_sse(
    request.scope,
    request.receive,
    request._send,
    ) as (read_stream, write_stream):
    await self._server.run(
    read_stream,
    write_stream,
    self._server.create_initialization_options(),
    )
    async def handle_sse(scope, receive, send):
    logger.debug(f"SSE connection from {scope.get('client')}")
    async with sse.connect_sse(
    scope,
    receive,
    send,
    ) as (read_stream, write_stream):
    await self._server.run(
    read_stream,
    write_stream,
    self._server.create_initialization_options(),
    )

    Starlette application instance
    """
    if not self._server:
    self._server = self.mcp._mcp_server
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    high

    Accessing the private attribute _mcp_server from the FastMCP instance makes this code fragile. This direct dependency on an internal implementation detail of the mcp library could cause this code to break with future updates to that library. A more robust approach would be to use a public API from FastMCP if one is available. If not, consider adding a comment to acknowledge this technical debt.

    Comment on lines +59 to +85
    def handle_request(self, request_data: Dict[str, Any]) -> Dict[str, Any]:
    """
    Handle incoming MCP requests.

    This method can be overridden in subclasses to add custom request handling,
    such as latency tracking, authentication, or request modification.

    Args:
    request_data: The incoming request data

    Returns:
    Response data
    """
    # Default implementation - can be overridden
    method = request_data.get('method', '')
    request_id = request_data.get('id', 'unknown')

    logger.debug(f"Handling request {request_id}: {method}")

    # Basic response structure
    response = {
    'id': request_id,
    'jsonrpc': '2.0',
    'result': {}
    }

    return response
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    medium

    The handle_request method is defined but appears to be unused within HostedMCPServer. If it's intended as a hook for subclasses, it should be integrated into the request flow; otherwise, consider removing it to avoid confusion and dead code.

    Comment on lines +161 to +163
    print(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    print(f"Available tools: {', '.join(self._tools.keys())}")
    print(f"SSE endpoint: http://{self.host}:{self.port}/sse")
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    medium

    The start method uses print() to output server startup information. For a library, it's better to use the logging module. This gives consumers of your library control over log verbosity and output destination.

    Suggested change
    print(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    print(f"Available tools: {', '.join(self._tools.keys())}")
    print(f"SSE endpoint: http://{self.host}:{self.port}/sse")
    logger.info(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    logger.info(f"Available tools: {', '.join(self._tools.keys())}")
    logger.info(f"SSE endpoint: http://{self.host}:{self.port}/sse")

    Comment on lines +167 to +182
    async def start_async(self, debug: bool = False):
    """
    Start the MCP server asynchronously.

    Args:
    debug: Enable debug mode
    """
    app = self.create_app(debug=debug)

    config = uvicorn.Config(app, host=self.host, port=self.port)
    server = uvicorn.Server(config)

    print(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    print(f"Available tools: {', '.join(self._tools.keys())}")

    await server.serve()
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    medium

    The start_async method is inconsistent with the synchronous start method. It's missing support for **uvicorn_kwargs, uses print() instead of logging, and doesn't log the SSE endpoint. Aligning these would improve consistency and usability.

    Suggested change
    async def start_async(self, debug: bool = False):
    """
    Start the MCP server asynchronously.
    Args:
    debug: Enable debug mode
    """
    app = self.create_app(debug=debug)
    config = uvicorn.Config(app, host=self.host, port=self.port)
    server = uvicorn.Server(config)
    print(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    print(f"Available tools: {', '.join(self._tools.keys())}")
    await server.serve()
    async def start_async(self, debug: bool = False, **uvicorn_kwargs):
    """
    Start the MCP server asynchronously.
    Args:
    debug: Enable debug mode
    **uvicorn_kwargs: Additional arguments to pass to uvicorn
    """
    app = self.create_app(debug=debug)
    config = uvicorn.Config(app, host=self.host, port=self.port, **uvicorn_kwargs)
    server = uvicorn.Server(config)
    logger.info(f"Starting {self.name} MCP server on {self.host}:{self.port}")
    logger.info(f"Available tools: {', '.join(self._tools.keys())}")
    logger.info(f"SSE endpoint: http://{self.host}:{self.port}/sse")
    await server.serve()

    Copy link
    Copy Markdown
    Contributor

    @coderabbitai coderabbitai bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Actionable comments posted: 3

    📜 Review details

    Configuration used: CodeRabbit UI
    Review profile: CHILL
    Plan: Pro

    📥 Commits

    Reviewing files that changed from the base of the PR and between d3e77ce and 440ebf8.

    📒 Files selected for processing (3)
    • src/praisonai-agents/praisonaiagents/mcp/__init__.py (1 hunks)
    • src/praisonai-agents/praisonaiagents/mcp/hosted_server.py (1 hunks)
    • src/praisonai-agents/pyproject.toml (1 hunks)
    🧰 Additional context used
    📓 Path-based instructions (1)
    `src/praisonai-agents/praisonaiagents/mcp/**/*.py`: Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.

    src/praisonai-agents/praisonaiagents/mcp/**/*.py: Implement MCP server and SSE support for distributed execution and real-time communication in praisonaiagents/mcp/.

    📄 Source: CodeRabbit Inference Engine (src/praisonai-agents/CLAUDE.md)

    List of files the instruction was applied to:

    • src/praisonai-agents/praisonaiagents/mcp/__init__.py
    • src/praisonai-agents/praisonaiagents/mcp/hosted_server.py
    🧠 Learnings (4)
    📓 Common learnings
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    src/praisonai-agents/praisonaiagents/mcp/__init__.py (2)
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-ts/.cursorrules:0-0
    Timestamp: 2025-06-30T10:05:51.843Z
    Learning: Applies to src/praisonai-ts/src/index.ts : The main entry point 'src/index.ts' should re-export key classes and functions (such as 'Agent', 'Agents', 'Task', etc.) for easy import by consumers.
    
    src/praisonai-agents/pyproject.toml (1)
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py (1)
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    🪛 Ruff (0.11.9)
    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py

    11-11: abc.abstractmethod imported but unused

    Remove unused import: abc.abstractmethod

    (F401)


    12-12: json imported but unused

    Remove unused import: json

    (F401)


    23-26: Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling

    (B904)


    31-31: HostedMCPServer is an abstract base class, but it has no abstract methods or properties

    (B024)

    ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
    • GitHub Check: Cursor BugBot
    🔇 Additional comments (4)
    src/praisonai-agents/pyproject.toml (1)

    25-26: LGTM!

    The addition of Starlette dependency is appropriate for the new HostedMCPServer functionality.

    src/praisonai-agents/praisonaiagents/mcp/__init__.py (1)

    8-10: LGTM!

    Properly exports the new HostedMCPServer class as part of the MCP package's public API.

    src/praisonai-agents/praisonaiagents/mcp/hosted_server.py (2)

    87-112: Well-implemented tool registration.

    The method correctly handles both synchronous and asynchronous functions, properly preserving function metadata.


    113-183: Excellent server lifecycle implementation.

    The server startup methods provide both synchronous and asynchronous options, with proper SSE transport configuration and helpful console output.

    Comment on lines +14 to +26
    try:
    from mcp.server.fastmcp import FastMCP
    from mcp.server import Server
    from starlette.applications import Starlette
    from starlette.requests import Request
    from starlette.routing import Mount, Route
    from mcp.server.sse import SseServerTransport
    import uvicorn
    except ImportError:
    raise ImportError(
    "MCP server dependencies not installed. "
    "Please install with: pip install praisonaiagents[mcp]"
    )
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    🛠️ Refactor suggestion

    Improve exception handling to preserve error context.

    Use from err syntax to preserve the original exception context for better debugging.

    Apply this diff to improve the error handling:

     try:
         from mcp.server.fastmcp import FastMCP
         from mcp.server import Server
         from starlette.applications import Starlette
         from starlette.requests import Request
         from starlette.routing import Mount, Route
         from mcp.server.sse import SseServerTransport
         import uvicorn
    -except ImportError:
    +except ImportError as err:
         raise ImportError(
             "MCP server dependencies not installed. "
             "Please install with: pip install praisonaiagents[mcp]"
    -    )
    +    ) from err
    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    try:
    from mcp.server.fastmcp import FastMCP
    from mcp.server import Server
    from starlette.applications import Starlette
    from starlette.requests import Request
    from starlette.routing import Mount, Route
    from mcp.server.sse import SseServerTransport
    import uvicorn
    except ImportError:
    raise ImportError(
    "MCP server dependencies not installed. "
    "Please install with: pip install praisonaiagents[mcp]"
    )
    try:
    from mcp.server.fastmcp import FastMCP
    from mcp.server import Server
    from starlette.applications import Starlette
    from starlette.requests import Request
    from starlette.routing import Mount, Route
    from mcp.server.sse import SseServerTransport
    import uvicorn
    except ImportError as err:
    raise ImportError(
    "MCP server dependencies not installed. "
    "Please install with: pip install praisonaiagents[mcp]"
    ) from err
    🧰 Tools
    🪛 Ruff (0.11.9)

    23-26: Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling

    (B904)

    🤖 Prompt for AI Agents
    In src/praisonai-agents/praisonaiagents/mcp/hosted_server.py around lines 14 to
    26, the ImportError raised in the except block does not preserve the original
    exception context. Modify the except block to use "raise ImportError(...) from
    err" where "err" is the caught ImportError exception, so the original error
    context is preserved for better debugging.
    

    - Remove unnecessary ABC inheritance and unused imports
    - Add proper error handling for uninitialized MCP server
    - Improve error messages for better debugging
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    @MervinPraison
    Copy link
    Copy Markdown
    Owner Author

    @claude possible not to add as a core package, rather add it in the example folder wehre it is referred ?

    @claude
    Copy link
    Copy Markdown
    Contributor

    claude bot commented Jul 11, 2025

    Claude finished @MervinPraison's task —— View job


    ✅ Task Completed

    I've successfully moved the HostedMCPServer class from the core package to the examples folder as requested.

    Changes Made:

    1. Moved the class: HostedMCPServer now resides in examples/python/custom_tools/hosted_server.py
    2. Updated imports: The example file now imports from the local file: from hosted_server import HostedMCPServer
    3. Cleaned up exports: Removed HostedMCPServer from the core package's __init__.py
    4. Added documentation: Added a note in the example file about required dependencies
    5. Preserved functionality: The example still works exactly as before

    Dependencies Note:

    I kept starlette>=0.27.0 in the optional MCP dependencies because:

    • The Agent class still uses Starlette directly for MCP server functionality
    • Other MCP examples in the codebase also require Starlette

    This refactoring successfully transforms HostedMCPServer from a core component to an example implementation, making it clear that it's provided as a reference for users who want to build their own hosted MCP servers.


    Branch: claude/issue-813-20250711_070340

    claude bot and others added 6 commits July 11, 2025 07:39
    - Move hosted_server.py to examples/python/custom_tools/
    - Update import in mcp_server_latency_example.py to use local file
    - Remove HostedMCPServer from core package exports
    
    This keeps HostedMCPServer as an example implementation rather than
    a core package component, as requested.
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    - Add hosted_server.py to examples/python/custom_tools/
    - Update documentation to clarify this is an example implementation
    - Keep starlette dependency as it's still used by Agent.launch() for MCP
    
    This makes HostedMCPServer an example implementation rather than
    a core package component.
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    @MervinPraison
    Copy link
    Copy Markdown
    Owner Author

    @claude dont make any changes to pyproject.toml

    @claude
    Copy link
    Copy Markdown
    Contributor

    claude bot commented Jul 11, 2025

    Claude finished @MervinPraison's task —— View job


    Todo List

    • Understand the directive about pyproject.toml
    • Acknowledge the request

    Acknowledgment

    Understood! I will not make any changes to pyproject.toml. The current state with starlette>=0.27.0 in the MCP optional dependencies will remain as is.

    The implementation has been successfully moved to the examples folder as requested earlier, and the dependency configuration in pyproject.toml appears to be correctly set up for the core package's needs.


    Copy link
    Copy Markdown

    @cursor cursor bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Bug: Accessing Private Starlette Request Attributes

    The code incorrectly accesses request._send, a private and non-standard attribute of the Starlette Request object. This makes the implementation fragile to Starlette updates and can lead to an AttributeError. The send callable should instead be obtained from the ASGI scope, for example, request.scope["send"].

    examples/python/custom_tools/hosted_server.py#L139-L140

    request.receive,
    request._send,

    Fix in CursorFix in Web


    Was this report helpful? Give feedback by reacting with 👍 or 👎

    Copy link
    Copy Markdown
    Contributor

    @coderabbitai coderabbitai bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Actionable comments posted: 2

    🧹 Nitpick comments (3)
    examples/python/custom_tools/hosted_server.py (3)

    25-28: Improve exception chaining for better debugging.

    When re-raising exceptions, use from syntax to preserve the original exception context.

    Apply this improvement:

    -except ImportError:
    +except ImportError as e:
         raise ImportError(
             "MCP server dependencies not installed. "
             "Please install with: pip install praisonaiagents[mcp] starlette>=0.27.0"
    -    )
    +    ) from e

    140-140: Using private request attribute.

    The code accesses request._send which is a private attribute. This could break with Starlette updates.

    Consider using the public API if available, or document why the private attribute access is necessary.


    186-188: Missing SSE endpoint in console output.

    The async start method doesn't print the SSE endpoint URL, unlike the synchronous version. This inconsistency could confuse users.

    Add the SSE endpoint to match the sync version:

     print(f"Starting {self.name} MCP server on {self.host}:{self.port}")
     print(f"Available tools: {', '.join(self._tools.keys())}")
    +print(f"SSE endpoint: http://{self.host}:{self.port}/sse")
    📜 Review details

    Configuration used: CodeRabbit UI
    Review profile: CHILL
    Plan: Pro

    📥 Commits

    Reviewing files that changed from the base of the PR and between aaae248 and 7cad644.

    📒 Files selected for processing (3)
    • examples/python/custom_tools/hosted_server.py (1 hunks)
    • examples/python/custom_tools/mcp_server_latency_example.py (1 hunks)
    • src/praisonai-agents/pyproject.toml (2 hunks)
    ✅ Files skipped from review due to trivial changes (1)
    • examples/python/custom_tools/mcp_server_latency_example.py
    🚧 Files skipped from review as they are similar to previous changes (1)
    • src/praisonai-agents/pyproject.toml
    🧰 Additional context used
    🧠 Learnings (2)
    📓 Common learnings
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    examples/python/custom_tools/hosted_server.py (1)
    Learnt from: CR
    PR: MervinPraison/PraisonAI#0
    File: src/praisonai-agents/CLAUDE.md:0-0
    Timestamp: 2025-06-30T10:06:17.673Z
    Learning: Applies to src/praisonai-agents/praisonaiagents/mcp/**/*.py : Implement MCP server and SSE support for distributed execution and real-time communication in `praisonaiagents/mcp/`.
    
    🪛 Ruff (0.11.9)
    examples/python/custom_tools/hosted_server.py

    14-14: json imported but unused

    Remove unused import: json

    (F401)


    25-28: Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling

    (B904)

    ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
    • GitHub Check: Cursor BugBot
    • GitHub Check: Run tests and collect coverage
    • GitHub Check: test-core (3.11)
    • GitHub Check: quick-test
    🔇 Additional comments (6)
    examples/python/custom_tools/hosted_server.py (6)

    33-60: Well-structured class initialization.

    The class definition and initialization are properly implemented with clear documentation, appropriate type hints, and sensible defaults.


    61-88: Incomplete request handling implementation.

    The handle_request method appears to be a stub that doesn't actually process MCP requests or invoke registered tools. While the docstring mentions this can be overridden in subclasses, a base implementation should handle standard MCP protocol requests.

    Is this intentional as a placeholder for subclasses, or should this method implement actual MCP request handling? For a functional MCP server, this would need to:

    • Parse and validate the JSON-RPC request
    • Route to appropriate handlers based on the method
    • Invoke registered tools when requested
    • Return proper responses or errors

    89-114: Proper tool registration implementation.

    The add_tool method correctly handles both synchronous and asynchronous functions, properly wrapping sync functions for async compatibility while preserving metadata.


    158-173: Clean server startup implementation.

    The synchronous start method is well-implemented with helpful console output and flexible uvicorn configuration support.


    191-197: Useful utility methods.

    The getter methods provide clean access to tools list and endpoint URL.


    129-131: Avoid relying on private FastMCP internals

    I couldn’t find any public accessor for the underlying server in the codebase—using self.mcp._mcp_server remains fragile and may break with future FastMCP releases.

    • File: examples/python/custom_tools/hosted_server.py (lines 129–131)

    if not hasattr(self.mcp, '_mcp_server'):
        raise RuntimeError("MCP server not properly initialized…")
    self._server = self.mcp._mcp_server

    Please verify with the FastMCP documentation or maintainers whether a supported public API exists to retrieve the server instance. If none is available, consider requesting or contributing a public getter in FastMCP to avoid direct access to private members.

    import asyncio
    import logging
    from typing import Dict, Any, Optional, List, Callable
    import json
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    ⚠️ Potential issue

    Remove unused import.

    The json module is imported but never used in this file.

    Remove the unused import:

    -import json
    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    import json
    🧰 Tools
    🪛 Ruff (0.11.9)

    14-14: json imported but unused

    Remove unused import: json

    (F401)

    🤖 Prompt for AI Agents
    In examples/python/custom_tools/hosted_server.py at line 14, the json module is
    imported but not used anywhere in the file. Remove the line that imports json to
    clean up the code and avoid unnecessary imports.
    

    Comment on lines +1 to +9
    """
    Hosted MCP Server implementation for PraisonAI Agents.

    This module provides a base class for creating hosted MCP servers
    that can handle requests and integrate with the MCP protocol.

    Note: This is an example implementation. To use it, ensure you have installed:
    pip install praisonaiagents[mcp] starlette>=0.27.0
    """
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    💡 Verification agent

    🧩 Analysis chain

    File location doesn't match PR objectives.

    According to the PR objectives, the HostedMCPServer class should be added to mcp/hosted_server.py in the core praisonaiagents package to fix the ImportError from praisonaiagents.mcp. However, this file is placed in the examples directory.

    The docstring also states "This is an example implementation," which conflicts with the intended purpose of fixing a missing import in the core package.

    Should this file be moved to src/praisonai-agents/praisonaiagents/mcp/hosted_server.py as originally intended? This would properly resolve the ImportError mentioned in issue #813.


    🏁 Script executed:

    #!/bin/bash
    echo "Verifying placement of hosted_server.py files"
    [ -f examples/python/custom_tools/hosted_server.py ] && echo "✔ examples/python/custom_tools/hosted_server.py exists" || echo "✖ examples/python/custom_tools/hosted_server.py missing"
    [ -f src/praisonai-agents/praisonaiagents/mcp/hosted_server.py ] && echo "✔ src/praisonai-agents/praisonaiagents/mcp/hosted_server.py exists" || echo "✖ src/praisonai-agents/praisonaiagents/mcp/hosted_server.py missing"

    Length of output: 494


    Action Required: Move Hosted MCP Server to Core Package & Clean Up Code

    Please address the following in hosted_server.py:

    • Relocate the file from
      examples/python/custom_tools/hosted_server.py
      to
      src/praisonai-agents/praisonaiagents/mcp/hosted_server.py
      so that praisonaiagents.mcp can import it directly and resolve the existing ImportError.

    • Update the module docstring to remove “example implementation” language and describe it as the core HostedMCPServer.

    • Remove the unused import json on line 14.

    • Chain the ImportError in your dependency‐check block for better tracebacks:

      --- old/examples/python/custom_tools/hosted_server.py
      +++ new/src/praisonai-agents/praisonaiagents/mcp/hosted_server.py
       try:
           from praisonaiagents.mcp.protocol import MCPProtocol
           from starlette.applications import Starlette
      -except ImportError:
      -    raise RuntimeError("Missing MCP or Starlette dependencies")
      +except ImportError as e:
      +    raise RuntimeError("Missing MCP or Starlette dependencies") from e
    • Adjust any import paths or references in your test/examples to point to the new location.

    These changes will ensure the core package exports the server implementation correctly and improve code quality.

    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    """
    Hosted MCP Server implementation for PraisonAI Agents.
    This module provides a base class for creating hosted MCP servers
    that can handle requests and integrate with the MCP protocol.
    Note: This is an example implementation. To use it, ensure you have installed:
    pip install praisonaiagents[mcp] starlette>=0.27.0
    """
    try:
    from praisonaiagents.mcp.protocol import MCPProtocol
    from starlette.applications import Starlette
    except ImportError as e:
    raise RuntimeError("Missing MCP or Starlette dependencies") from e

    @MervinPraison MervinPraison merged commit acf9a92 into main Jul 11, 2025
    11 of 14 checks passed
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    cannot import HostedMCPServer from praisonaiagents.mcp (Latency test)

    1 participant