← Back to DevHub

API Playground

Test MCP endpoints directly in your browser

Request

https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}

Response

Response will appear here

Click "Send Request" to test the API

Code Examples

cURL

curl -X POST https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

JavaScript (fetch)

const response = await fetch('https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/list',
    params: {}
  })
});
const data = await response.json();
console.log(data);

Python (requests)

import requests

response = requests.post('https://bookchaowalit-portfolio-frontend.vercel.app/api/mcp', json={
    'jsonrpc': '2.0',
    'id': 1,
    'method': 'tools/list',
    'params': {}
})
data = response.json()
print(data)