Skip to content

Interactive Test Bench Overview ​

The Interactive Test Bench (Test Bench tab) is MCG's built-in testing, verification, and diagnostics environment. It allows developers and administrators to execute tools, read virtual resources, evaluate prompt templates, test semantic search ranking, send direct JSON-RPC payloads, and monitor live streaming logs without requiring external AI clients or IDE plugins.


🎛️ Test Bench Layout & Navigation ​

Interactive Test Bench View

The Test Bench organizes diagnostic operations into six primary tools:

Test Bench TabDiagnostic Function
🛠️ ToolsDynamic schema-driven form builder and execution tester for all registered tools
📄 ResourcesVirtual MCP resource reader (mcp://...) and system information inspector
💬 PromptsPrompt template argument evaluator and system/user prompt renderer
🧠 Semantic RouterVector cosine similarity, BM25 lexical search, and tool ranking simulator
💻 ConsoleDirect JSON-RPC 2.0 command console for low-level protocol testing
📟 LogsReal-time streaming diagnostic log terminal with PII masking and severity filters

🧭 Diagnostic Subsystems ​

Diagnostic ToolSubsystem CardPurpose & CapabilitiesDocumentation
🛠️ ToolsToolTesterCardExecute any discovered or custom tool directly with schema-generated dynamic form controls or raw JSON.Tool Execution Tester
📄 ResourcesResourceTesterCardInspect and read virtual MCP resources (mcp://...) and system resources (router://status, router://database).Resources & Prompts
💬 PromptsPromptTesterCardRender and validate prompt templates with custom parameters before deploying to AI assistants.Resources & Prompts
🧠 Semantic RouterSemanticRouterCardTest natural language query matching, cosine vector similarity, keyword weighting, and tool ranking.Semantic Router
💻 ConsoleConsoleCardSend raw JSON-RPC 2.0 messages directly to the gateway and inspect downstream responses.Console & Live Logs
📟 LogsLogsTerminalCardMonitor real-time streaming gateway logs with PII redaction, severity filters, and clear controls.Console & Live Logs

⚙️ Active Tester Panel Architecture ​

The Active Tester Panel changes dynamically based on the selected sub-tab:

  1. Target Selection: Select a server and capability. MCG pulls the cached JSON Schema from memory.
  2. Dynamic Form Generation: The UI renders input controls for every declared property (text inputs, checkboxes for booleans, number steppers, and JSON object editors).
  3. Execution Pipeline: Clicking the execution action proxies the call through MCG's authorization engine (4-stage pipeline), recording latency, HTTP status, and sanitized audit logs.
  4. Live Log Output: The terminal at the bottom of the view updates concurrently, showing the full downstream request cycle in real time.

Released under the Apache 2.0 License.