Skip to content

Commit 6796a80

Browse files
committed
adds some curl commands in testing
1 parent d3f2cd2 commit 6796a80

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

examples/example-fastmcp-mcp/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,20 @@ npx @modelcontextprotocol/inspector
159159
The server will start up and the UI will be accessible at http://localhost:6274.
160160

161161
In the MCP Inspector, select `Streamable HTTP` as the `Transport Type` and enter `http://localhost:3001/mcp` as the URL.
162+
163+
### Using cURL
164+
165+
You can use cURL to verify that the server is running:
166+
167+
```bash
168+
# Test that the server is running and accessible - check OAuth resource metadata
169+
curl -v http://localhost:3001/.well-known/oauth-protected-resource
170+
171+
# Test MCP initialization (requires valid Auth0 access token)
172+
curl -X POST http://localhost:3001/mcp \
173+
-H "Content-Type: application/json" \
174+
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
175+
-d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "curl-test", "version": "1.0.0"}}}'
176+
```
177+
178+
**Note:** Use the MCP Inspector or other MCP-compatible clients for comprehensive testing.

0 commit comments

Comments
 (0)