Linear MCP服务器
一个提供对Linear问题只读访问的MCP服务器,允许语言模型使用Linear API令牌获取问题详情和评论。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"linear-issues": {
"args": [
"-y",
"@keegancsmith/linear-issues-mcp-server"
],
"command": "npx",
"env": {
"LINEAR_API_TOKEN": "your_linear_api_token_here"
}
}
}
}
服务介绍
Linear Issues MCP 服务器
这是一个简单的MCP(模型上下文协议)服务器,提供对Linear问题的只读访问。它允许语言模型使用Linear API令牌获取Linear问题及其相关数据。
功能
该服务器提供了两个工具:
linear_get_issue:通过URL或标识符获取Linear问题的基本详情linear_get_issue_with_comments:获取完整的Linear问题信息,包括所有评论
要求
- Node.js
- 一个Linear API令牌或OAuth访问令牌
安装
如果您使用npx,则无需安装。只需确保已安装Node.js和npm。
获取Linear API令牌
您可以通过两种方式获取Linear API令牌:
- API密钥(最简单):在您的Linear API设置中生成API密钥
- OAuth令牌:对于更高级的用例或特定用户的访问
- 在Linear中创建OAuth2应用程序
- 按照OAuth流程获取用户访问令牌
在Claude for Desktop中的使用
要将此MCP服务器与Claude for Desktop一起使用,请执行以下步骤:
- 确保您已经准备好Linear API令牌
- 将服务器添加到您的Claude for Desktop配置文件中:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json - Windows:
%AppData%\Claude\claude_desktop_config.json
- MacOS:
示例配置:
{
"mcpServers": {
"linear-issues": {
"command": "npx",
"args": ["-y", "@keegancsmith/linear-issues-mcp-server"],
"env": {
"LINEAR_API_TOKEN": "your_linear_api_token_here"
}
}
}
}
- 重启Claude for Desktop
使用示例
一旦服务器设置完成,您可以在Claude中使用它来与Linear问题交互:
Can you get me the details for issue ENG-123?
Claude将使用linear_get_issue工具以及您的问题ID,并从环境变量中获取令牌。
What are all the comments on the issue at https://linear.app/company/issue/ENG-123/issue-title?
Claude可以使用linear_get_issue_with_comments来获取包括评论在内的完整问题详情。
许可证
MIT