Skip to content

Question: How to correctly add mcp server #123

Open
@alexiokay

Description

@alexiokay

He, I'm trying to work with simple client chat implementation and add mcp server for example: https://smithery.ai/server/@turkyden/weather

this is my config:

# MCP server configuration
[mcp]
[[mcp.server]]
name = "weather"
protocol = "sse"
url = "https://server.smithery.ai/@turkyden/weather"
api_key = ""

how to correctly connect to this server and correctly pass api key?

from server docs:

const transport = createTransport("https://server.smithery.ai/@turkyden/weather", {}, "your-smithery-api-key")

but i dont really understand how to structure the url., when i init chat i get

Failed to create MCP clients: Transport error: HTTP status client error (404 Not Found) for url (https://server.smithery.ai/@turkyden/weather)

diffrent servers has diffrent configuration schemas, so the case will be diffrent right? then how the configuration.rs should be written to work universally for diffrent servers? I want to simply allow my app users to add mcp servers

Metadata

Metadata

Assignees

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