Skip to content

Not working with cody #978

@sivag-csod

Description

@sivag-csod

Describe the bug
I just followed this article https://sourcegraph.com/blog/cody-supports-anthropic-model-context-protocol and added following config under settings.json as suggest. It showing in suggestions if I search 'everything'

"openctx.providers": {
        "https://openctx.org/npm/@openctx/provider-modelcontextprotocol": {
            "nodeCommand": "node",
            "mcp.provider.uri": "file:///Users/sgollapalli/work/servers/src/everything/dist/index.js",
        }
    }

but When I add other MCP server like postgres it is not picking up

"openctx.providers": {
        "https://openctx.org/npm/@openctx/provider-modelcontextprotocol": {
            "nodeCommand": "node",
            "mcp.provider.uri": "file:///Users/sgollapalli/work/servers/src/everything/dist/index.js",
        },
        "https://openctx.org/npm/@openctx/provider-modelcontextprotocol": {
            "nodeCommand": "node",
            "mcp.provider.uri": "file:///Users/sgollapalli/work/servers/src/postgres/dist/index.js",
        },
    }

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
A clear and concise description of what you expected to happen.

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions