hyperlane-plugin-mcp 23.3.2

A Model Context Protocol (MCP) Streamable HTTP server plugin for the Hyperlane framework with tool, resource, and prompt registries, session lifecycle management, DNS-rebinding Origin validation, and an opt-in ServerHook.
Documentation

hyperlane-plugin-mcp

Streamable HTTP Model Context Protocol (MCP) Server Plugin

Crates.io Version Docs.rs CI Status Rust 2024 License: MIT

Workspace Overview · Plugin Catalog · API Docs


Overview

hyperlane-plugin-mcp embeds a Streamable HTTP Model Context Protocol (MCP) server directly into hyperlane services (hook order -60). It is opt-in and transparent (Status::Continue) when unconfigured.

Installation

cargo add hyperlane-plugin-mcp

Usage

use hyperlane_plugin_mcp::{McpPlugin, McpRegistry, McpServerConfig};

fn setup_mcp() {
    let registry: McpRegistry = McpRegistry::default();
    McpPlugin::init(McpServerConfig::default(), registry);
}

Verification

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-mcp --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-mcp --all-features

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.