Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created January 24, 2026 13:35
Show Gist options
  • Select an option

  • Save wullemsb/93a644f3d01b1548ddf49a685c78a521 to your computer and use it in GitHub Desktop.

Select an option

Save wullemsb/93a644f3d01b1548ddf49a685c78a521 to your computer and use it in GitHub Desktop.
### Variables
@baseUrl = http://localhost:3000
@contentType = application/json
### Initialize MCP Session
POST {{baseUrl}}/mcp/initialize
Content-Type: {{contentType}}
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {
"roots": {
"listChanged": true
}
},
"clientInfo": {
"name": "test-client",
"version": "1.0.0"
}
}
}
### List Available Tools
POST {{baseUrl}}/mcp/tools/list
Content-Type: {{contentType}}
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}
### Call a Tool
POST {{baseUrl}}/mcp/tools/call
Content-Type: {{contentType}}
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "get_weather",
"arguments": {
"location": "San Francisco, CA"
}
}
}
### List Resources
POST {{baseUrl}}/mcp/resources/list
Content-Type: {{contentType}}
{
"jsonrpc": "2.0",
"id": 4,
"method": "resources/list"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment