You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/_how-tos/use-insomnia-mcp-clients-to-test-aggregated-mcp-tools.md
+17-48Lines changed: 17 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,76 +49,45 @@ prereqs:
49
49
tldr:
50
50
q: How do I test aggregated MCP tools using Insomnia?
51
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.
52
+
Connect an Insomnia MCP client to the listener-mode AI MCP Proxy endpoint that the aggregation setup creates. Then test each tool and validate behaviour using Insomnia’s Params, Headers, Events, and Console panels.
53
53
---
54
54
55
55
Use Insomnia to connect to an MCP server exposed through the AI MCP Proxy plugin in listener mode.
56
56
57
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
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:
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
60
61
61
## Create an MCP client
62
62
63
63
1. Open **Insomnia**.
64
-
2. In the left sidebar, click **MCP Clients**.
64
+
2. In the sidebar, click **MCP Clients**.
65
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
66
+
4. In the **Name** field, enter a name: **Aggregated MCP Tools**
67
+
5. In the **MCP Server URL** field, enter your listener URL: `http://localhost:8000/mcp-listener`
70
68
6. Click **Connect**.
71
69
72
-
Insomnia connects to the MCP server and discovers all aggregated tools.
70
+
Insomnia connects to the MCP server and discovers all of the aggregated tools.
73
71
74
-
## Validate discovered tools
72
+
## Validate tools
75
73
76
-
1. In toolbar, locate the **Tools** drop-down section.
77
-
2. Review the list of available tools.
74
+
1. In the sidebar, locate the **Tools** drop-down section.
75
+
2. Review the list of available tools.
78
76
79
-
If any tools are missing:
80
-
81
-
- Confirm all conversion-only plugins use the same `tags[]` value.
77
+
{:.info}
78
+
> If any tools are missing:
79
+
- Confirm that all conversion-only plugins use the same `tags[]` value.
82
80
- Confirm that the listener-mode plugin’s `server.tag` matches that value.
83
81
- Confirm that the listener Route is active and reachable.
84
82
85
-
## Invoke and test tools
83
+
## Test tools
86
84
87
-
Use Insomnia’s testing panels to validate MCP tool behaviour. Complete the following process to run a tool:
85
+
Use Insomnia’s testing panels to validate MCP tool behaviour:
88
86
89
87
1. In **Tools**, click any tool.
90
-
2.Click the **Params** tab.
91
-
3. Enter parameter values.
88
+
2.In the request pane, click the **Params** tab.
89
+
3. Enter the required parameter value.
92
90
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
91
+
5. In the response pane, click the **Console** tab.
123
92
124
93
A successful response confirms that your aggregated MCP configuration is working correctly.
0 commit comments