authplane-fastmcp 0.1.0

Authplane adapter helpers for fastmcp-rust (stdio + HTTP).
Documentation

authplane-fastmcp

crates.io docs.rs

Consent-to-URL-elicitation helpers for fastmcp-rust, with support for both stdio and HTTP transports.

Install

cargo add authplane-fastmcp

Quickstart

use authplane_fastmcp::wrap_tool_with_url_elicitation;

# async fn demo() {
let result = wrap_tool_with_url_elicitation(|| async {
    Ok::<_, authplane_sdk::AuthplaneError>("ok")
})
.await;

assert!(result.is_ok());
# }

Transports

fastmcp-rust 0.3+ supports both stdio and HTTP:

// HTTP (default for authenticated servers)
server.run_http("127.0.0.1:8080");

// stdio (for subprocess-based MCP clients)
server.run_stdio();

See the user guide for consent mapping details and the exact fastmcp-rust error shape.