koishi-plugin-mcp-server
v0.0.4
Published
Convert koishi command to mcp tools
Maintainers
Readme
koishi-plugin-mcp-server
Convert koishi command to mcp tools
使用 http 请求调用 koishi 的命令
使用方法
如果 cline 插件报错 Invalid content type, expected "text/event-stream", 则需要在 cline 端重载 mcp-server 配置
"koishi": {
"url": "http://127.0.0.1:5140/sse",
"disabled": false,
"autoApprove": []
}请求示例
# 要执行的命令
command --options1 options1value --options2 options2value arg1 arg2curl --location --request POST 'http://127.0.0.1:5140/executor' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: 127.0.0.1:5140' \
--header 'Connection: keep-alive' \
--data-raw '{
"command": "command",
"args": ["arg1", "arg2"],
"options": {
"options1": "options1value",
"options2": "options2value"
}
}'