scala-mcp

[md]explorer

Scala.js · not published

A browser-based UI for interacting with any HTTP MCP server: browse tools, resources, resource templates, and prompts; call them interactively; inspect results. Useful for development and debugging without rigging up a real client.

The Explorer is a Scala.js + Tyrian app styled with Bulma, bundled into static assets by Parcel. You don't add it as a dependency directly — instead, the http4s module bundles the pre-built assets and serves them via .withExplorer(...) on your McpHttp.basic / McpHttp.streaming builder:

import cats.effect.IO
import net.andimiller.mcp.http4s.McpHttp

val builder =
  McpHttp.streaming[IO]
    .withExplorer(redirectToRoot = true) // serves at /explorer; redirects / there too

See http4s → Embedded Explorer UI for the asset-rebuild workflow.