mise任务mcp服务器
索引
______________________________________________________________________
关于
布置 任务MCP服务器。
这是一个MCP(模型上下文协议)服务器,允许AI助手与任务交互。它提供了列出和执行项目中错误任务的工具。
______________________________________________________________________
环境
deno -v
deno 2.4.2______________________________________________________________________
准备
安装Deno
curl -fsSL https://deno.land/install.sh | sudo DENO_INSTALL=/usr/local sh安装mise
curl https://mise.jdx.dev/install.sh | sh______________________________________________________________________
使用方法
\[!警告\]mise之前无法运行任务mise trust. 在运行此MCP服务器之前,您应该运行以下命令。 ``shell mise trust``
# list tools
echo '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}' | deno task dev --dir /home/sigma/mise-mcp-server/mcp-server/test-fixtures;
Task dev deno run --watch --allow-env=HOME --allow-read --allow-write --allow-run main.ts "--dir" "/home/sigma/mise-mcp-server/mcp-server/test-fixtures"
Watcher Process started.
{"result":{"tools":[{"name":"restart-alsa","description":"Restart ALSA to fix the audio output issue"},{"name":"hello","description":"hello test-fixtures/mise.toml"},{"name":"see-you","description":"see you test-fixtures/mise.toml"}]},"jsonrpc":"2.0","id":2}# use tools
echo '{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "hello", "arguments": {}}}' | deno task dev --dir /home/sigma/mise-mcp-server/mcp-server/test-fixtures;
Task dev deno run --watch --allow-env=HOME --allow-read --allow-write --allow-run main.ts "--dir" "/home/sigma/mise-mcp-server/mcp-server/test-fixtures"
Watcher Process started.
{"result":{"success":true,"content":[{"type":"text","text":"Hello test-fixtures/mise.toml.\n"}]},"jsonrpc":"2.0","id":2}
Watcher Process finished. Restarting on file change...______________________________________________________________________
开发商
cd mcp-server/test-fixtures/
mise trust命令
cd mcp-server/
deno lint
deno fmt
deno task test