feat(linear): add MCP-style save issue (#9670)

* feat(linear): add MCP-style save issue

* fix(linear): harden save issue parity

* fix(linear): close save issue contract gaps

* docs(linear): bundle project discovery with save issue
This commit is contained in:
Brennan Benson
2026-07-21 13:25:22 -07:00
committed by GitHub
parent 87af1c8673
commit a10a2ba53c
33 changed files with 1094 additions and 61 deletions
+17 -1
View File
@@ -90,7 +90,8 @@ export type {
LinearUserSummary,
LinearWorkspaceCandidate,
LinearWriteIssueRef,
LinearIssueTaskUpdateResult
LinearIssueTaskUpdateResult,
LinearSaveIssueResult
} from './linear-agent-result-types'
export type { LinearIssueActivityEntry, LinearIssueActivityValue } from './linear-issue-activity'
export type { LinearInlineMedia } from './linear-inline-media'
@@ -174,6 +175,21 @@ export type LinearCreateRequest = {
context?: LinearCurrentIssueContextHints
}
export type LinearSaveIssueRequest = LinearWriteTargetRequest & {
team?: string
title?: string
description?: string
state?: string
assignee?: string | null
priority?: number
estimate?: number | null
dueDate?: string | null
labels?: string[]
project?: string | null
parentId?: string | null
writeId?: string
}
export function clampLinearSearchLimit(limit: number | undefined): number {
if (limit === undefined) {
return LINEAR_SEARCH_DEFAULT_LIMIT
+10
View File
@@ -313,3 +313,13 @@ export type LinearCreateResult = {
}
meta: { workspaceId: string; writeId: string; deduplicated: boolean }
}
export type LinearSaveIssueResult = {
issue: LinearCreateResult['issue']
meta: {
workspaceId: string
created: boolean
writeId?: string
deduplicated?: boolean
}
}
+4
View File
@@ -1687,6 +1687,7 @@ export type LinearIssue = {
export type LinearProjectSummary = {
id: string
slugId?: string
workspaceId?: string
workspaceName?: string
name: string
@@ -1851,6 +1852,7 @@ export type LinearIssueUpdate = {
dueDate?: string | null
labelIds?: string[]
projectId?: string | null
parentId?: string | null
}
export type ClassifiedError = {
@@ -2026,6 +2028,8 @@ export type LinearLabel = {
export type LinearMember = {
id: string
displayName: string
name?: string
email?: string
avatarUrl?: string
}