사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/alexai-mcp/hermes-ccc --skill linear시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Linear Project Management
Manage Linear issues, cycles, projects, and team workflows via the Linear API (GraphQL) or MCP.
Setup
# Get API key from Linear: Settings → API → Personal API Keys
export LINEAR_API_KEY="lin_api_..."import requests
LINEAR_API = "https://api.linear.app/graphql"
HEADERS = {
"Authorization": f"Bearer {LINEAR_API_KEY}",
"Content-Type": "application/json"
}
def linear_query(query, variables=None):
resp = requests.post(LINEAR_API, json={"query": query, "variables": variables or {}}, headers=HEADERS)
return resp.json()["data"]List Issues
query = """
query {
issues(filter: {assignee: {isMe: {eq: true}}, state: {type: {nin: ["completed", "cancelled"]}}}) {
nodes {
id title priority state { name } team { name }
}
}
}
"""
data = linear_query(query)
for issue in data["issues"]["nodes"]:
print(f"[{issue['state']['name']}] {issue['title']}")Create Issue
mutation = """
mutation CreateIssue($title: String!, $teamId: String!, $description: String, $priority: Int) {
issueCreate(input: {
title: $title
teamId: $teamId
description: $description
priority: $priority
}) {
success
issue { id title url }
}
}
"""
data = linear_query(mutation, {
"title": "Fix auth bug in production",
"teamId": "TEAM_ID",
"description": "Users getting 401 on refresh token",
"priority": 1 # 0=no priority, 1=urgent, 2=high, 3=medium, 4=low
})
print(data["issueCreate"]["issue"]["url"])Get Teams
teams_query = """
query { teams { nodes { id name key } } }
"""
data = linear_query(teams_query)
for team in data["teams"]["nodes"]:
print(f"{team['key']}: {team['name']} ({team['id']})")Update Issue
update_mutation = """
mutation UpdateIssue($id: String!, $stateId: String) {
issueUpdate(id: $id, input: { stateId: $stateId }) {
success
}
}
"""
linear_query(update_mutation, {"id": "ISSUE_ID", "stateId": "STATE_ID"})Search Issues
search_query = """
query SearchIssues($query: String!) {
issueSearch(query: $query) {
nodes { id title state { name } url }
}
}
"""
data = linear_query(search_query, {"query": "auth bug"})Cycles (Sprints)
cycles_query = """
query {
cycles(filter: {isActive: {eq: true}}) {
nodes {
id name number startsAt endsAt
issues { nodes { id title state { name } } }
}
}
}
"""
data = linear_query(cycles_query)MCP Integration
If Linear MCP is installed in .mcp.json:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-linear"],
"env": {"LINEAR_API_KEY": "lin_api_..."}
}
}
}Then Claude can use Linear tools directly without GraphQL code.
Webhooks (receive events)
# Linear sends POST to your endpoint on issue create/update
# Payload includes: type, action, data.issue
# Verify with: X-Linear-Signature header
import hmac, hashlib
def verify_signature(payload, signature, secret):
expected = hmac.new(secret.encode(), payload, hashlib.sha256).hexdigest()
return hmac.compare_digest(f"sha256={expected}", signature)

