MCP任务服务器

一个允许AI助手与mise任务交互的MCP服务器,提供列出和执行mise项目的功能。

  • by RyosukeDTomita
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 ryosukedtomita/mise-mcp-server

使用说明

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服务器之前,您应该运行以下命令。

mise trust <your dir>
# 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