Skip to content

Multi-server Clients don't block for server initialization #568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
strawgate opened this issue May 23, 2025 · 3 comments
Open

Multi-server Clients don't block for server initialization #568

strawgate opened this issue May 23, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@strawgate
Copy link
Contributor

Description

[05/23/25 00:14:53] INFO     Starting MCP server 'Local Filesystem Operations MCP' with transport 'stdio'             server.py:747
2025-05-23 00:14:54,262 - mcp_server_tree_sitter.language.registry - WARNING - Skipping pre-loading of languages due to missing dependencies
2025-05-23 00:14:54,285 - mcp_server_tree_sitter.server - INFO - Starting MCP Tree-sitter Server
2025-05-23 00:14:54,293 - mcp.server.lowlevel.server - INFO - Processing request of type ListToolsRequest
[05/23/25 00:14:55] INFO     Starting MCP server 'Local References' with transport 'stdio'                            server.py:747
5.24s - Error on build_exception_info_response.
Traceback (most recent call last):
  File "/Users/bill.easton/.cursor/extensions/ms-python.debugpy-2024.6.0-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 1477, in build_exception_info_response
    stack_str = ''.join(stack_summary.format())
                        ~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/bill.easton/.local/share/uv/python/cpython-3.13.3-macos-aarch64-none/lib/python3.13/traceback.py", line 757, in format
    formatted_frame = self.format_frame_summary(frame_summary, colorize=colorize)
  File "/Users/bill.easton/.local/share/uv/python/cpython-3.13.3-macos-aarch64-none/lib/python3.13/traceback.py", line 561, in format_frame_summary
    last_line = all_lines_original[frame_summary.end_lineno - frame_summary.lineno]
                ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

Example Code

mcp = FastMCP(name="mcp-oops")

    config_contents = Path(mcp_config).read_text(encoding="utf-8")
    config = yaml.safe_load(config_contents)

    client = Client(config)

    async with client:
        
        await client.ping()
        await client.list_tools() <---- ERROR

        proxy = FastMCP.as_proxy(client)

Version Information

2.4.0

Additional Context

No response

@strawgate strawgate added the bug Something isn't working label May 23, 2025
@strawgate
Copy link
Contributor Author

actually i think a server is just failing to start and not giving me any info on why

@strawgate
Copy link
Contributor Author

Looks like maybe NPX servers arent supported via config dicts yet?

  git:
    command: "npx"
    args: ["-y", "@cyanheads/git-mcp-server"]
    description: "Perform git-related actions"

@jlowin
Copy link
Owner

jlowin commented May 23, 2025

That's weird they should be! Will have to look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants