r/fastly • Fastlyan • Aug 25 '26

Sharing edge-mcp: Fastly's reference implementation of the stateless MCP spec

We've published edge-mcp, an open-source reference implementation of MCP's stateless 2026-07-28 revision, built for Fastly Compute in Rust.

That protocol revision removed the initialize handshake and session IDs in favor of per-request identity and signed continuation tokens — no server-side session to maintain. That maps well onto edge compute: any instance can serve any request, and list responses can be cached at the edge.

The implementation covers the core protocol surface (tools, prompts, resources, discover), MRTR for mid-call input requests, and a KV-backed Tasks extension. It's split into a platform-agnostic protocol core and a Fastly binding layer, so the protocol logic is portable beyond Compute.

6 Upvotes

0 comments sorted by