Linear MCP Server
用于Linear API的模型上下文协议(MCP)服务器。
Linear MCP 服务器允许 LLM 通过模型上下文协议与 Linear 问题跟踪系统交互。
设置步骤
方法一:自动安装(推荐)
通过 Smithery 为 Claude Desktop 安装:
npx @smithery/cli install mcp-server-linearapp --client claude
方法二:手动安装
-
获取 Linear API 密钥:https://linear.app/settings/account/security
-
配置 Claude Desktop(编辑
~/Library/Application Support/Claude/claude_desktop_config.json
):
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "mcp-server-linearapp"],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
主要功能
用户和团队操作
- 查看个人信息:
linear_get_viewer
- 获取用户问题:
linear_get_user_issues
- 获取团队信息:
linear_get_teams
、linear_get_team
项目管理
- 获取项目列表:
linear_get_projects
- 获取项目详情:
linear_get_project
- 获取项目问题:
linear_get_project_issues
问题操作
- 创建问题:
linear_create_issue
(需提供title
和teamId
) - 更新问题:
linear_update_issue
- 搜索问题:
linear_search_issues
- 添加评论:
linear_add_comment
标签和附件
- 管理标签:
linear_get_labels
、linear_create_label
- 处理附件:
linear_add_attachment
、linear_get_attachments
示例用法
创建新问题:
{
"title": "修复导航栏错误",
"teamId": "TEAM_ID",
"description": "移动端导航栏在小屏幕设备上显示不正确",
"priority": 2
}
完整的工具列表和详细参数请参考完整文档。