Skip to content

Commit 991a83a

Browse files
authored
fix linear (#408)
1 parent f9e3038 commit 991a83a

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

mcp_servers/linear/server.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ async def list_tools() -> list[types.Tool]:
112112
},
113113
"limit": {
114114
"type": "integer",
115-
"description": "Maximum number of issues to return (default: 50).",
116-
"default": 50,
115+
"description": "Maximum number of issues to return (default: 10).",
116+
"default": 10,
117117
},
118118
"filter": {
119119
"type": "object",
120120
"description": "Filter object for issues",
121121
"properties": {
122+
"priority": {
123+
"type": "integer",
124+
"description": "Filter by priority (0=No Priority, 1=Urgent, 2=High, 3=Medium, 4=Low)"
125+
},
122126
"updatedAt": {
123127
"type": "object",
124128
"description": "Filter by update timestamp for issues.",
@@ -447,7 +451,7 @@ async def call_tool(
447451

448452
elif name == "linear_get_issues":
449453
team_id = arguments.get("team_id")
450-
limit = arguments.get("limit", 50)
454+
limit = arguments.get("limit", 10)
451455
filter_param = arguments.get("filter")
452456
try:
453457
result = await get_issues(team_id, limit, filter_param)

mcp_servers/linear/tools/issues.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ async def get_issues(team_id: str = None, limit: int = 50, filter: Dict[str, Any
2222
issue_filter["updatedAt"] = filter["updatedAt"]
2323
if "createdAt" in filter:
2424
issue_filter["createdAt"] = filter["createdAt"]
25+
if "priority" in filter:
26+
issue_filter["priority"] = {"eq": filter["priority"]}
2527

2628
# Use filtered query if we have any filters
2729
if issue_filter:
@@ -34,7 +36,6 @@ async def get_issues(team_id: str = None, limit: int = 50, filter: Dict[str, Any
3436
title
3537
description
3638
priority
37-
priorityLabel
3839
state {
3940
id
4041
name
@@ -78,7 +79,6 @@ async def get_issues(team_id: str = None, limit: int = 50, filter: Dict[str, Any
7879
title
7980
description
8081
priority
81-
priorityLabel
8282
state {
8383
id
8484
name
@@ -316,7 +316,6 @@ async def search_issues(query_text: str, team_id: str = None, limit: int = 20) -
316316
title
317317
description
318318
priority
319-
priorityLabel
320319
state {
321320
id
322321
name
@@ -360,7 +359,6 @@ async def search_issues(query_text: str, team_id: str = None, limit: int = 20) -
360359
title
361360
description
362361
priority
363-
priorityLabel
364362
state {
365363
id
366364
name

0 commit comments

Comments
 (0)