14 lines
369 B
JavaScript
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();
|