Mooncore.Dev.Plug (mooncore v0.2.4)

Copy Markdown

Development dashboard and MCP server plug.

Runs on a dedicated port (default 4040), separate from the main app. Provides:

  • HTML dashboard with MCP tools, log viewer, and IEx console
  • Standard MCP protocol endpoint (JSON-RPC 2.0 over Streamable HTTP)
  • JSON API endpoints for MCP operations

Only active when config :mooncore, mooncore_dev_tools: true. Automatically started on the configured mcp_port (default: 4040).

Configuration

config :mooncore,
  mooncore_dev_tools: true,
  mcp_port: 4040   # default

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.