Skip to content

Cursor: SSE error: TypeError: terminated: Body Timeout Error #71

Closed
@iduanyingjie

Description

@iduanyingjie

Describe the bug
Curosr connect to server setting:

{
    "mcpServers": {
        "redshift": {
            "url": "http://localhost:55600/sse"
        }
    }
}

After waiting for a few minutes:

Image

Normal after Refresh:

Image

To Reproduce
Steps to reproduce the behavior:

  1. use dependency
    rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", branch = "main", features = [ "client", "server","transport-sse","transport-sse-server", "transport-io", "transport-child-process", "tower"] }

  2. dev server

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    tracing_subscriber::registry()
        .with(
            tracing_subscriber::EnvFilter::try_from_default_env()
                .unwrap_or_else(|_| "info".to_string().into()),
        )
        .with(tracing_subscriber::fmt::layer())
        .init();
    let ct = SseServer::serve(BIND_ADDRESS.parse()?).await?.with_service(RedshiftMcpRouter::new);

    tokio::signal::ctrl_c().await?;
    ct.cancel();
    Ok(())
}

Logs

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions