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
To check the server configuration, a short command using the MCP server configuration registry (injected through `McpServerConfigurationRegistryInterface` and autowiring):
To test the `example` MCP server, a sequence of `curl` commands is used to simulate an AI to MCP server communication.
188
196
189
197
- Ask for a [JWT token through REST](/api/rest_api/rest_api_reference/rest_api_reference.html#tag/User-Token/operation/api_usertokenjwt_post)
@@ -261,4 +269,39 @@ The `greet` [tool usage](https://modelcontextprotocol.io/specification/draft/ser
261
269
}
262
270
```
263
271
264
-
TODO: Connect an AI client to the MCP server. [Copilot CLI MCP server addition](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) is strangely asking for some OAuth ID even with a proper JWT/Bearer header.
272
+
### MCP Inspector test
273
+
274
+
To test your server, you can use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector).
275
+
It's even possible to use it as a DDEV add-on with [`craftpulse/ddev-mcp-inspector`](https://github.com/craftpulse/ddev-mcp-inspector).
276
+
You still need to ask for a JWT token through REST and use it in the MCP Inspector configuration to connect to your server.
277
+
278
+
To use the MCP Inspector for this example, the settings are:
279
+
280
+
- Transport Type: Streamable HTTP
281
+
- URL: addition of the actual domain and the server `path`, for example `http://localhost/mcp/example`
282
+
- Connection Type: Via Proxy
283
+
- Authentication:
284
+
- Custom Headers:
285
+
- ✓ Authorization
286
+
- Bearer <JWTtokenobtainedthroughREST>
287
+
- OAuth 2.0 Flow: leave unedited
288
+
289
+

290
+
291
+
In the right panel, in the **Tools** tab, click **List Tools** button in the left column.
292
+
The `greet` tool appears preceded by its icon.
293
+
It can be selected and tested in the right column.
294
+
295
+

296
+
297
+
### TODO: Copilot CLI test
298
+
299
+
TODO: Test the server with [Copilot CLI](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-copilot-cli).
300
+
301
+
TODO: Create an .mcp.json file at the project root so the MCP server will only exist for a session of Copilot CLI opened from project root (for example, in a terminal tab of your IDE).
302
+
303
+
TODO: [Copilot CLI MCP server addition](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) is strangely asking for some OAuth ID even with a proper JWT/Bearer header.
0 commit comments