Files
vibn-frontend/vibn-frontend/test_mcp_fetch.js

14 lines
369 B
JavaScript

async function test() {
const res = await fetch('http://localhost:3000/api/mcp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer vibn_sk_fake'
},
body: JSON.stringify({ action: 'workspace.describe' })
});
console.log("Status:", res.status);
console.log("Body:", await res.text());
}
test();