@@ -108,6 +108,11 @@ mini-a goal="list all JavaScript files in this directory" useshell=true
108108mini-a goal=" what time is it in Sydney?" mcp=" (cmd: 'ojob mcps/mcp-time.yaml', timeout: 5000)"
109109```
110110
111+ ** Testing MCP servers interactively:**
112+ ``` bash
113+ mini-a mcptest=true mcp=" (cmd: 'ojob mcps/mcp-time.yaml')"
114+ ```
115+
111116** Aggregate MCP tools via proxy (single tool exposed):**
112117``` bash
113118mini-a goal=" compare release dates across APIs" \
@@ -132,6 +137,60 @@ mini-a goal="help me plan a vacation in Lisbon" chatbotmode=true
1321373 . Set your model configuration (see Quick Start above)
1331384 . Start using Mini-A via ` opack exec mini-a ` (or the ` mini-a ` alias if you added it)!
134139
140+ ## Testing MCP Servers
141+
142+ Mini-A includes an interactive MCP server testing tool that helps you test and debug MCP servers before integrating them into your workflows.
143+
144+ ### Using the MCP Tester
145+
146+ Launch the MCP tester console:
147+ ``` bash
148+ mini-a mcptest=true
149+ ```
150+
151+ Or connect to an MCP server directly:
152+ ``` bash
153+ mini-a mcptest=true mcp=" (cmd: 'ojob mcps/mcp-time.yaml')"
154+ ```
155+
156+ For HTTP remote MCP servers:
157+ ``` bash
158+ mini-a mcptest=true mcp=" (type: remote, url: 'http://localhost:9090/mcp')"
159+ ```
160+
161+ ### MCP Tester Features
162+
163+ The interactive tester provides:
164+
165+ - ** Connection Management** - Connect to both STDIO (local command) and HTTP Remote MCP servers
166+ - ** Tool Discovery** - List all available tools from the connected MCP server
167+ - ** Tool Inspection** - View detailed information about tool parameters, types, and descriptions
168+ - ** Interactive Tool Calling** - Call any MCP tool with custom parameters through guided prompts
169+ - ** Configuration Options** - Adjust settings like debug mode, tool selection display size, and result parsing
170+ - ** Library Loading** - Load additional OpenAF libraries for extended functionality using ` libs= ` parameter
171+
172+ ### Available Options
173+
174+ - ` mcp ` - MCP server configuration (SLON/JSON string or object)
175+ - ` libs ` - Comma-separated list of libraries to load (e.g., ` libs="@mini-a/custom.js,helper.js" ` )
176+ - ` debug ` - Enable debug mode for detailed MCP connection logging (can be toggled in the interactive menu)
177+
178+ ### Example Session
179+
180+ ``` bash
181+ # Launch the tester
182+ mini-a mcptest=true
183+
184+ # 1. Choose "New connection"
185+ # 2. Select "STDIO (local command)"
186+ # 3. Enter: ojob mcps/mcp-time.yaml
187+ # 4. Choose "List tools" to see available tools
188+ # 5. Choose "Call a tool" to test a specific tool
189+ # 6. Follow the prompts to enter parameters
190+ ```
191+
192+ The tester includes automatic cleanup with shutdown handlers to properly close MCP connections when exiting.
193+
135194## Features
136195
137196- ** Multi-Model Support** - Works with OpenAI, Google Gemini, GitHub Models, AWS Bedrock, Ollama, and more
@@ -184,6 +243,7 @@ Mini-A ships with complementary components:
184243
185244- ** ` mini-a.yaml ` ** - Core oJob definition that implements the agent workflow
186245- ** ` mini-a-con.js ` ** - Interactive console available through ` opack exec mini-a ` (or the ` mini-a ` alias)
246+ - ** ` mini-a-mcptest.js ` ** - Interactive MCP server tester for testing and debugging MCP servers
187247- ** ` mini-a.sh ` ** - Shell wrapper script for running directly from a cloned repository
188248- ** ` mini-a.js ` ** - Reusable library for embedding in other OpenAF jobs
189249- ** ` mini-a-web.sh ` / ` mini-a-web.yaml ` ** - Lightweight HTTP server for browser UI
0 commit comments