tambahan
This commit is contained in:
@@ -62,6 +62,24 @@ export const MCPRoute = new Elysia({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (method === "mcp/version") {
|
||||||
|
controller.enqueue(
|
||||||
|
JSON.stringify({
|
||||||
|
jsonrpc: "2.0",
|
||||||
|
id,
|
||||||
|
result: {
|
||||||
|
protocol: "2024-11-05", // versi MCP baru
|
||||||
|
capabilities: {
|
||||||
|
"tools/list": true,
|
||||||
|
"tools/call": true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}) + "\n"
|
||||||
|
);
|
||||||
|
controller.close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Method tidak dikenal
|
// Method tidak dikenal
|
||||||
controller.enqueue(
|
controller.enqueue(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
|||||||
16
x.sh
16
x.sh
@@ -1,13 +1,3 @@
|
|||||||
TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJob3N0Iiwic3ViIjoiY21neXI4MjR3MDAwMHBkemhwdjIxZGFzZCIsInBheWxvYWQiOiJ7XCJuYW1lXCI6XCJwZXJjb2JhYW5cIixcImRlc2NyaXB0aW9uXCI6XCJ1bnR1ayBwZXJjb2JhYW5cIixcImV4cGlyZWRBdFwiOlwiMjAzMS0xMC0yMFwifSIsImV4cCI6MTk1MDIyMDgwMCwiaWF0IjoxNzYwOTQyNTcwfQ.X4Y4MJ4aIohT65oJjHCaf2d6e8afnroXu3Hz-jH0WGM
|
curl -N -X POST https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp-server/mcp \
|
||||||
curl https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp-server/mcp \
|
-H "Content-Type: application/json" \
|
||||||
--request POST \
|
-d '{"id":1,"method":"tools/list"}'
|
||||||
--header 'Content-Type: application/json' \
|
|
||||||
--header 'Authorization: Bearer $TOKEN' \
|
|
||||||
--data '{
|
|
||||||
"jsonrpc": "",
|
|
||||||
"method": "",
|
|
||||||
"params": {
|
|
||||||
"^(.*)$": null
|
|
||||||
},
|
|
||||||
"id": ""
|
|
||||||
}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user