|
| 1 | +--- |
| 2 | +title: Use Insomnia MCP clients to test aggregated MCP tools |
| 3 | +content_type: how_to |
| 4 | +description: Learn how to use Insomnia 12.1 MCP clients to test MCP tools exposed by AI MCP Proxy in listener mode after they have been aggregated from multiple upstream APIs. |
| 5 | + |
| 6 | +products: |
| 7 | + - insomnia |
| 8 | + - ai-gateway |
| 9 | + |
| 10 | +related_resources: |
| 11 | + - text: Aggregate MCP tools from multiple AI MCP Proxy plugins |
| 12 | + url: /mcp/aggregate-mcp-tools/ |
| 13 | + - text: MCP clients in Insomnia |
| 14 | + url: /insomnia/mcp/ |
| 15 | + |
| 16 | +min_version: |
| 17 | + insomnia: "12.0" |
| 18 | + |
| 19 | +tags: |
| 20 | + - ai |
| 21 | + - mcp |
| 22 | + |
| 23 | +tools: |
| 24 | + - deck |
| 25 | + |
| 26 | +prereqs: |
| 27 | + inline: |
| 28 | + - title: Aggregated MCP server |
| 29 | + content: | |
| 30 | + Before testing with Insomnia, complete the [Aggregate MCP tools from multiple AI MCP Proxy plugins](/mcp/aggregate-mcp-tools/) guide. |
| 31 | + That guide produces: |
| 32 | +
|
| 33 | + - Multiple conversion-only AI MCP Proxy plugin instances that each expose MCP tools |
| 34 | + - One listener-mode AI MCP Proxy plugin aggregating those tools by tag |
| 35 | + - A public listener endpoint: |
| 36 | + ``` |
| 37 | + http://localhost:8000/mcp-listener |
| 38 | + ``` |
| 39 | + icon_url: /assets/icons/mcp.svg |
| 40 | + |
| 41 | + - title: Network access |
| 42 | + content: | |
| 43 | + Ensure your local machine can reach the listener endpoint produced during aggregation. |
| 44 | +
|
| 45 | + Test connectivity: |
| 46 | + ``` |
| 47 | + curl http://localhost:8000/mcp-listener |
| 48 | + ``` |
| 49 | +tldr: |
| 50 | + q: How do I test aggregated MCP tools using Insomnia? |
| 51 | + a: | |
| 52 | + Connect an Insomnia MCP client to the listener-mode AI MCP Proxy endpoint created during the aggregation setup. Then invoke each tool and validate behaviour using Insomnia’s Params, Headers, Events, and Console panels. |
| 53 | +--- |
| 54 | + |
| 55 | +Use Insomnia to connect to an MCP server exposed through the AI MCP Proxy plugin in listener mode. |
| 56 | + |
| 57 | +This listener server aggregates MCP tools from multiple upstream APIs, enabling you to validate end-to-end behaviour using Insomnia’s Params, Headers, Events, and Console panels. |
| 58 | + |
| 59 | +After completing the aggregation workflow described in **[Aggregate MCP tools from multiple AI MCP Proxy plugins](/mcp/aggregate-mcp-tools/)** and exposing an autogenerated or aggregated MCP server, follow this guide to test and validate its MCP tools using Insomnia’s MCP Clients: |
| 60 | + |
| 61 | +## Create an MCP client |
| 62 | + |
| 63 | +1. Open **Insomnia**. |
| 64 | +2. In the left sidebar, click **MCP Clients**. |
| 65 | +3. Click **New MCP Client**. |
| 66 | +4. In the **Name** field, enter a name: |
| 67 | + Aggregated MCP Tools |
| 68 | +5. In the **MCP Server URL** field, enter your listener URL: |
| 69 | + http://localhost:8000/mcp-listener |
| 70 | +6. Click **Connect**. |
| 71 | + |
| 72 | +Insomnia connects to the MCP server and discovers all aggregated tools. |
| 73 | + |
| 74 | +## Validate discovered tools |
| 75 | + |
| 76 | +1. In toolbar, locate the **Tools** drop-down section. |
| 77 | +2. Review the list of available tools. |
| 78 | + |
| 79 | +If any tools are missing: |
| 80 | + |
| 81 | +- Confirm all conversion-only plugins use the same `tags[]` value. |
| 82 | +- Confirm that the listener-mode plugin’s `server.tag` matches that value. |
| 83 | +- Confirm that the listener Route is active and reachable. |
| 84 | + |
| 85 | +## Invoke and test tools |
| 86 | + |
| 87 | +Use Insomnia’s testing panels to validate MCP tool behaviour. Complete the following process to run a tool: |
| 88 | + |
| 89 | +1. In **Tools**, click any tool. |
| 90 | +2. Click the **Params** tab. |
| 91 | +3. Enter parameter values. |
| 92 | +4. Click **Call Tool**. |
| 93 | +5. Click the **Console** tab. |
| 94 | + |
| 95 | +## Debug tool behaviour using Insomnia panels |
| 96 | + |
| 97 | +Insomnia provides several panels to validate MCP activity: |
| 98 | + |
| 99 | +- **Params**: Verify the parameters passed to the tool. |
| 100 | +- **Headers (Request)**: Inspect headers added by plugins such as Request Transformer Advanced. |
| 101 | +- **Headers (Response)**: Validate response headers and status. |
| 102 | +- **Events**: View lifecycle and authentication events. |
| 103 | +- **Console**: Inspect raw MCP JSON-RPC requests and responses. |
| 104 | + |
| 105 | +Use these panels to confirm: |
| 106 | + |
| 107 | +- Correct parameter mapping |
| 108 | +- Correct API key injection (if configured) |
| 109 | +- Upstream connectivity |
| 110 | +- Schema-correct JSON responses |
| 111 | + |
| 112 | + |
| 113 | +## Validate aggregated MCP behaviour end-to-end |
| 114 | + |
| 115 | +1. Select any tool. |
| 116 | +2. Click **Call Tool**. |
| 117 | +3. Open the **Console** tab. |
| 118 | +4. Confirm: |
| 119 | + - The MCP request structure is valid |
| 120 | + - The listener-mode MCP Proxy plugin processes the request |
| 121 | + - The upstream service responds successfully |
| 122 | + - The returned JSON matches the tool’s schema |
| 123 | + |
| 124 | +A successful response confirms that your aggregated MCP configuration is working correctly. |
0 commit comments