For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP +

Model Context Protocol server module for BoxLang runtime diagnostics, introspection, and operational automation.

The bx-mcp module exposes a production-ready Model Context Protocol (MCP) server for BoxLang, enabling MCP-capable clients โ€” AI coding assistants, IDE agents, monitoring tools, and automation pipelines โ€” to inspect and operate a live BoxLang runtime over HTTP.

When enabled, the module auto-registers a boxlang MCP server and exposes an HTTP endpoint at /~bxmcp/boxlang.bxm. Clients communicate via JSON-RPC 2.0 to list and invoke tools, retrieve prompts, and read resources.


โœจ Features

  • ๐Ÿ” Runtime Introspection โ€” Query BoxLang version, configuration, BIFs, components, and global services

  • ๐Ÿ’ป JVM Diagnostics โ€” Memory, threads, CPU, GC, hot threads, deadlock detection, heap dumps, disk and file descriptor usage

  • ๐Ÿ—„๏ธ Data Layer โ€” Cache analytics, datasource pool metrics, slow SQL capture, connection pool latency histograms

  • ๐ŸŒ HTTP & Web โ€” HTTP/SOAP client stats, slow outbound call capture, slow request analysis, per-route metrics, Undertow server diagnostics

  • โšก Operations โ€” Async executor monitoring, scheduler management, module lifecycle, interceptor registry audit, application lifecycle, logging, file watchers

  • ๐Ÿฅ Structured Health Reports โ€” Unified health snapshots across all subsystems with scoring, issue codes, and actionable recommendations

  • ๐Ÿšจ Incident Response โ€” Pre-built triage, error spike, cascade failure, rollback decision, and post-incident review workflows

  • ๐Ÿ”ง Extensible โ€” Register custom MCP tools and prompts from your own modules and applications at runtime

  • ๐ŸŽฎ Interactive CLI โ€” Built-in shell client with tab completion, watch mode, and formatted output

  • ๐Ÿ”’ Access Control โ€” Per-token tool filtering with glob patterns, IP allowlisting, CORS support, and tool whitelist/blacklist


๐Ÿ“ฆ Installation

Via CommandBox

Via BoxLang OS Binary


๐Ÿš€ Quick Start

After installation, the MCP server is available at http://localhost:8080/~bxmcp/boxlang.bxm. Here's a 3-step check that everything is working:

1. List available tools:

2. Get BoxLang runtime information:

3. Check cache health:

See the Quick Start guide for detailed setup including VS Code, Claude Desktop, and Cursor client configurations.


๐Ÿ“– Documentation Sections

Usage Guides

Guide
Description

Install, configure, and connect your first MCP client

Auth tokens, per-token tool filters, IP allowlisting, CORS

VS Code, Claude Desktop, Cursor, and generic curl setup

Health checks, performance snapshots, JVM monitoring, scheduler oversight

Cache analysis, datasource health, slow SQL/HTTP diagnosis

Triage workflows, error spikes, cascade failures, post-mortems

Register custom tools and prompts at runtime

Reference

Section
Description

Complete tool catalog organized by domain (154 tools)

Pre-built diagnostic and administrative prompts (32 prompts)

JSON-RPC 2.0 endpoint, methods, and request/response envelopes

Health report schema, scoring model, and issue code catalog

Complete settings reference and authentication deep-dive


๐Ÿ”Œ Client Connection

Configure your MCP client to connect to the BoxLang endpoint:

See Client Configuration for platform-specific setup (VS Code, Claude Desktop, Cursor) and Security & Access Control for authentication options.


๐ŸŽฎ Interactive CLI

The module ships with a built-in interactive CLI client. Launch it from the BoxLang CLI:

Once connected, use commands like tools, prompts, run <tool>, and watch <tool> to interact with any MCP server.


๐Ÿ“‹ Requirements

  • BoxLang 1.12+

  • bx-plus and bx-ai modules

  • A BoxLang+ Subscription is required for use


Last updated

Was this helpful?