使用说明
线性MCP服务器
旨在比现有的Linear MCP服务器功能更丰富,并通过Claude进行整体项目管理。
这是基于https://github.com/jerhadf/linear-mcp-server具有更多功能。
特征:
- 举措
- 项目
- 问题
- 关系
- 优先级排序
安装
将服务器配置添加到Claude Desktop。
注意:Claude不适合nvm环境。确保使用Node的绝对路径引用Node的版本。
{
"mcpServers": {
"linear": {
"command": "/Users/USERNAME/.nvm/versions/node/v22.13.0/bin/node",
"args": [
"--experimental-strip-types",
"/absolute/path/to/repo/index.ts"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
可用工具
项目管理
create-project-创建新的线性项目view-project-按ID查看线性项目update-project-更新线性项目
倡议管理
create-initiative-创建新的线性计划view-initiative-按ID查看线性计划update-initiative-更新线性计划
问题管理
create-issue-创建新的线性问题view-issue-按ID查看线性问题update-issue-更新线性问题search-issues-搜索线性问题
问题关系
create-issue-relation-在两个问题(块、重复等)之间创建关系view-issue-relations-查看给定问题的所有关系delete-issue-relation-删除两个问题之间的关系
示例
User:
Break the Implement Contact API Endpoints issue into multiple issues, one for each endpoint
Claude:
I'll break down the API endpoints issue into separate issues for each endpoint and create the appropriate relationships.
View result from create-issue from linear (local)
View result from create-issue from linear (local)
View result from create-issue from linear (local)
View result from create-issue from linear (local)
View result from create-issue from linear (local)
Now let's create the relationships between these new issues and the existing ones. First, they all depend on the TypeScript Models issue:
View result from create-issue-relation from linear (local)
View result from create-issue-relation from linear (local)
View result from create-issue-relation from linear (local)
View result from create-issue-relation from linear (local)
View result from create-issue-relation from linear (local)
I've created five separate issues for each endpoint and set up their relationships:
GET /contacts (List) - d1aae514
GET /contacts/:id (Single) - 01850d5d
POST /contacts (Create) - 2e0f2b75
PUT /contacts/:id (Update) - d22b143d
DELETE /contacts/:id (Delete) - dde30779
All of these endpoints depend on the TypeScript Models issue (2c38c6ee) being completed first.
The UI Components issue (dd214884) and Search/Filter issue (81a33a29) now should depend on the completion of these endpoint issues, particularly the GET endpoints.
Would you like me to:
Create those additional relationships with the UI Components?
Add any specific cross-dependencies between the endpoints themselves?
Break down any of these endpoint issues into more granular tasks?