Skip to content
首頁文件部落格關於
English 简体中文 繁體中文 Español Français Русский العربية Português Deutsch 日本語 한국어 हिन्दी
此頁面尚未翻譯為您的語言,目前顯示英文版本。

MCP Transports

Moraya supports three transport mechanisms for MCP server communication.

stdio Transport

The stdio transport spawns a child process and communicates via stdin/stdout. This is managed by the Rust backend (MCPProcessManager).

# Example: Connect to a local MCP server
Command: npx @modelcontextprotocol/server-filesystem
Args: /path/to/workspace

SSE Transport (Server-Sent Events)

The SSE transport connects to a remote server via EventSource for receiving messages and POST requests for sending.

# Example SSE endpoint
URL: http://localhost:3001/sse

HTTP Transport

The HTTP transport uses stateless JSON-RPC POST requests for both directions.

# Example HTTP endpoint
URL: http://localhost:3002/mcp