| 1234567891011121314 |
- const body = JSON.stringify({
- jsonrpc: '2.0',
- id: 1,
- method: process.argv[2] || 'tools/list',
- params: process.argv[3] ? JSON.parse(process.argv[3]) : {},
- });
- const res = await fetch('http://127.0.0.1:3000/mcp', {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body,
- });
- const text = await res.text();
- console.log(res.status, text.slice(0, 4000));
|