Dart Mcp 服务器
概览
什么是 Dart MCP 服务器?
Dart MCP 服务器由组织 its-dart
开发,是一个强大的服务器,旨在促进 Dart AI 模型上下文协议(MCP)。该服务器作为需要高效处理 AI 模型及其上下文的应用程序的后端解决方案,能够实现 AI 系统各个组件之间的无缝集成和通信。
Dart MCP 服务器的特点
- 开源:Dart MCP 服务器是公开可用的,允许开发者根据自己的需求贡献和修改代码。
- 高效的协议处理:它专门设计用于管理模型上下文协议的复杂性,确保 AI 模型能够有效利用。
- 可扩展性:服务器构建为能够同时处理多个请求,可以根据应用程序的需求进行扩展,适合小型和大型项目。
- 社区支持:随着用户和贡献者社区的不断壮大,开发者可以找到支持、分享想法并协作改进。
如何使用 Dart MCP 服务器
- 安装:使用以下命令从 GitHub 克隆代码库:
git clone https://github.com/its-dart/dart-mcp-server.git
- 设置:导航到项目目录并安装必要的依赖项。确保您的计算机上已安装 Dart SDK。
cd dart-mcp-server dart pub get
- 运行服务器:通过执行以下命令启动服务器:
dart run bin/server.dart
- 与您的应用程序集成:使用提供的 API 将您的应用程序与 Dart MCP 服务器连接,以实现高效的模型上下文管理。
常见问题解答
Dart MCP 服务器的目的是什么?
Dart MCP 服务器旨在管理和促进 AI 模型的通信和上下文处理,使开发者更容易将 AI 功能集成到他们的应用程序中。
Dart MCP 服务器是免费使用的吗?
是的,Dart MCP 服务器是开源的,并在 MIT 许可证下免费使用,允许开发者根据需要修改和分发软件。
我可以为 Dart MCP 服务器贡献吗?
当然可以!欢迎贡献。您可以分叉代码库,进行更改,并提交拉取请求与社区分享您的改进。
Dart MCP 服务器使用什么编程语言?
该服务器使用 Dart 开发,Dart 是一种现代编程语言,优化用于构建 Web、服务器和移动应用程序。
我在哪里可以找到 Dart MCP 服务器的文档?
文档通常可以在代码库中找到,通常在 README.md
文件或专门的 docs
目录中。您还可以查看 GitHub 代码库以获取其他资源和示例。
详情
Dart is Project Management powered by AI.
dart-mcp-server
is the official AI Model Context Protocol (MCP) server for Dart.
Features
Prompts
The following prompts are available
create-task
- Create a new task in Dart with title, description, status, priority, and assigneecreate-doc
- Create a new document in Dart with title, text content, and foldersummarize-tasks
- Get a summary of tasks with optional filtering by status and assignee
These prompts make it easy for AI assistants to perform common actions in Dart without needing to understand the underlying API details.
Resource templates
The following resources are available
dart-config:
- Configuration information about the user's spacedart-task:///{taskId}
- Detailed information about specific tasksdart-doc:///{docId}
- Detailed information about specific docs
Tools
The following tools are available
Task management
get_config
- Get information about the user's space, including available assignees, dartboards, folders, statuses, tags, priorities, and sizeslist_tasks
- List tasks with optional filtering by assignee, status, dartboard, priority, due date, and morecreate_task
- Create a new task with title, description, status, priority, size, dates, dartboard, assignees, tags, and parent taskget_task
- Retrieve an existing task by its IDupdate_task
- Update an existing task's propertiesdelete_task
- Move a task to the trash (recoverable)add_task_comment
- Add a comment to an existing task
Document management
list_docs
- List docs with optional filtering by folder, title, text content, and morecreate_doc
- Create a new doc with title, text content, and folderget_doc
- Retrieve an existing doc by its IDupdate_doc
- Update an existing doc's propertiesdelete_doc
- Move a doc to the trash (recoverable)
Each tool supports comprehensive input validation and returns structured JSON responses.
Setup
The easiest way to run the MCP server is with npx
, but a Docker setup is also available.
Find the MCP settings file for the client
Claude Desktop
- Install Claude Desktop as needed
- Open the config file by opening the Claude Desktop app, going into its Settings, opening the 'Developer' tab, and clicking the 'Edit Config' button
- Follow the 'Set up the MCP server' steps below
Claude Code
-
Install Claude Code as needed
-
Copy your authentication token from your Dart profile
-
Run the following command, being sure to replace
dsa...
with your actual Dart tokenclaude mcp add-json dart '{"command":"npx","args":["-y","dart-mcp-server"],"env":{"DART_TOKEN":"dsa_..."}}'
Cursor
- Install Cursor as needed
- Open the config file by opening Cursor, going into 'Cursor Settings' (not the normal VSCode IDE settings), opening the 'MCP' tab, and clicking the 'Add new global MCP server' button
- Follow the 'Set up the MCP server' steps below
Cline
- Install Cline in your IDE as needed
- Open the config file by opening your IDE, opening the Cline sidebar, clicking the 'MCP Servers' icon button that is second from left at the top, opening the 'Installed' tab, and clicking the 'Configure MCP Servers' button
- Follow the 'Set up the MCP server' steps below
Windsurf
- Install Windsurf as needed
- Open the config file by opening Windsurf, going into 'Windsurf Settings' (not the normal VSCode IDE settings), opening the 'Cascade' tab, and clicking the 'View raw config' button in the 'Model Context Protocol (MCP) Servers' section
- Follow the 'Set up the MCP server' steps below
Any other client
- Find the MCP settings file, usually something like
[client]_mcp_config.json
- Follow the 'Set up the MCP server' steps below
Set up the MCP server
-
Install npx, which comes bundled with Node, as needed
-
Copy your authentication token from your Dart profile
-
Add the following to your MCP setup, being sure to replace
dsa...
with your actual Dart token{ "mcpServers": { "dart": { "command": "npx", "args": ["-y", "dart-mcp-server"], "env": { "DART_TOKEN": "dsa_..." } } } }
Variant: setup with Docker
If the npx
setup above does not work well, we also provide a Docker setup. Follow the instructions above to find the MCP settings file
-
Install Docker as needed
-
Build the Docker container with
docker build -t mcp/dart .
-
Copy your authentication token from your Dart profile
-
Add the following to your MCP setup, being sure to replace
dsa...
with your actual Dart token{ "mcpServers": { "dart": { "command": "bash", "args": [ "-c", "docker rm -f dart-mcp >/dev/null 2>&1 || true; docker run -i --rm --name dart-mcp -e DART_TOKEN mcp/dart" ], "env": { "DART_TOKEN": "dsa_..." } } } }
Help and Resources
- Homepage
- Web App
- Help Center
- Bugs and Features
- Library Source
- Chat on Discord
- Email us at support@dartai.com
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Server配置
{
"mcpServers": {
"dart-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--its-dart--dart-mcp-server--dart-mcp-server",
"node dist/index.js"
],
"env": {
"DART_TOKEN": "dart-token"
}
}
}
}