
Protocol Specification
Deep links use the following URL format:Component | Description |
---|---|
{client-schema}:// | Protocol scheme |
{optional-handler} | Deeplink handler |
/mcp/install | Path |
name | Query parameter for the server name |
config | Query parameter for base64 encoded JSON configuration |
config
parameter contains a URL-encoded JSON object with the following schema:
Field | Description | Example |
---|---|---|
type | Server connection type | "stdio" or "http" |
command | Command to start the server executable (required for stdio type). The command needs to be available on your system path or contain its full path. | "npx" |
args | Array of arguments passed to the command (required for stdio type). | ["-y", "@smithery/cli@latest", "run", "@wonderwhy-er/desktop-commander"] |
url | URL of the MCP server (required for http type) | "https://server.smithery.ai/exa/mcp" |
Example Configurations
stdio-based Configuration:
HTTP-based Configuration:
Handling Deep links
When your client receives a deeplink:- Parse the URL-encoded config parameter using
decodeURIComponent
- Parse the resulting string as JSON
- Create the transport with provided arguments