Skip to content

Unable to run Async requests #50

@kameshsampath

Description

@kameshsampath

I have MCP server https://github.com/kameshsampath/snowflake-cortex-agent-mcp-server. When testing the application I see the docker mcp gateway run is not waiting for the SSE response.

When I configure MCP like e.g. with vscode it works perfectly responding to my question

"Vannilla_Cortex": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "SNOWFLAKE_ACCOUNT",
                "-e",
                "SNOWFLAKE_USER",
                "-e",
                "SNOWFLAKE_PASSWORD",
                "-e",
                "SEMANTIC_MODEL_FILE",
                "-e",
                "CORTEX_SEARCH_SERVICE",
                "-e",
                "SNOWFLAKE_WAREHOUSE",
                "-e",
                "CORTEX_AGENT_LLM_MODEL",
                "mcp/snowflake-cortex-agent"
            ],
            "type": "stdio",
            "env": {
                "SNOWFLAKE_ACCOUNT": "xxx",
                "SNOWFLAKE_PASSWORD": "xxx",
                "SEMANTIC_MODEL_FILE": "xxx",
                "CORTEX_SEARCH_SERVICE": "xxx",
                "SNOWFLAKE_MCP_DEMO_WAREHOUSE": "xx"
            }
        }

But when I do configure a MCP server like and do the same query it fails meaning it does not return any response. I see its not waiting for the SSE response to be streamed and completed.

 "MCP_DOCKER": {
            "command": "docker",
            "args": [
                "mcp",
                "gateway",
                "run",
                "--long-lived",
                "--verbose"
            ],
            "type": "stdio"
        },

CC: @ipedrazas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions