110 lines
5.0 KiB
JSON
110 lines
5.0 KiB
JSON
{
|
||
"schema": 1,
|
||
"id": "linear",
|
||
"name": "Linear",
|
||
"version": "1.1.0",
|
||
"description": "Linear issue and project pills: links, typed keys (APP-123), issue branches, get_issue / get_project lookups — and the card colour and icon of an issue's project (Linear's own).",
|
||
"category": "dev",
|
||
"icon": "kanban",
|
||
"color": "#505c91",
|
||
"author": "gabrielvidal",
|
||
|
||
"settings": {
|
||
"subtitle": "Which conversations show Linear pills, and how a project dresses its cards",
|
||
"fields": [
|
||
{ "key": "linearWorkspace", "label": "Workspace", "type": "text",
|
||
"help": "The <workspace> of linear.app/<workspace>/issue/… — gives a link to an issue named by its key only (APP-123)" },
|
||
{ "key": "workers", "label": "Runners", "type": "list",
|
||
"help": "Runner ids whose conversations show Linear pills (local = the lab); empty = every runner" },
|
||
{ "key": "cwdGlobs", "label": "Folders", "type": "list",
|
||
"help": "Working-directory globs (~/work/acme*); empty = anywhere" },
|
||
{ "key": "notifPills", "label": "Pills on notifications", "type": "checkbox", "default": false,
|
||
"help": "Show the issue pill on these conversations' pushes too" },
|
||
{ "key": "cardColour", "label": "Card colour", "type": "select", "default": "group",
|
||
"options": [
|
||
{ "value": "group", "label": "The issue's project — each issue a shade of it" },
|
||
{ "value": "hue", "label": "One per issue — each PR a shade of it" }
|
||
],
|
||
"help": "An issue whose project isn't known yet keeps a colour of its own" },
|
||
{ "key": "iconOrder", "label": "Card icon", "type": "select", "default": "group",
|
||
"options": [
|
||
{ "value": "group", "label": "Project › label › team" },
|
||
{ "value": "label", "label": "Label › project › team" }
|
||
],
|
||
"help": "The first of these that has an icon draws the card's tile" },
|
||
{ "key": "groupPills", "label": "Project pills", "type": "checkbox", "default": true,
|
||
"help": "Show the issue's project as a pill next to it" },
|
||
{ "key": "groupLooks", "label": "Linear's project icons and colours", "type": "checkbox", "default": true,
|
||
"help": "Learned from get_project / list_projects lookups. Off: only what you set in Settings → Tags" }
|
||
]
|
||
},
|
||
|
||
"resources": [
|
||
{
|
||
"id": "linear",
|
||
"label": "Linear issue",
|
||
"urlRegex": "^https://linear\\.app/(?P<workspace>[\\w-]+)/issue/(?P<team>[A-Za-z][A-Za-z0-9]{0,6})-(?P<num>\\d{1,6})(?:/(?P<slug>[^/?#\\s]+))?",
|
||
"idRegex": "^(?P<team>[A-Za-z][A-Za-z0-9]{0,6})-(?P<num>\\d{1,6})$",
|
||
"idTemplate": "{team:upper}-{num}",
|
||
"urlTemplate": "https://linear.app/{workspace|config.linearWorkspace}/issue/{team:upper}-{num}",
|
||
"labelTemplate": "{team:upper}-{num}",
|
||
"titleToken": "{team:upper}-{num}",
|
||
"slugTitleGroup": "slug",
|
||
"bareKeyRegex": "(?<![\\w/#.-])(?P<team>[A-Z][A-Z0-9]{0,6})-(?P<num>\\d{1,6})(?![\\w-])",
|
||
"bareKeyTeamGroup": "team",
|
||
"branchKeyPattern": "^(?:[\\w.-]+/)?(?:worktree-)?(?P<team>[A-Za-z][A-Za-z0-9]{0,6})-(?P<num>\\d{1,6})(?:-(?P<slug>.+))?$",
|
||
"needles": ["{team:upper}-{num}"],
|
||
"groupBy": "project",
|
||
"toolExtractors": [
|
||
{
|
||
"tool": "mcp__*__get_issue",
|
||
"inputTemplate": "{id|issueId}",
|
||
"urlFields": ["url"],
|
||
"idFields": ["id", "identifier"],
|
||
"titleFields": ["title"],
|
||
"stateFields": ["status"],
|
||
"metaFields": { "labels": "labels[].name", "project": "project.name", "team": "team.name" }
|
||
}
|
||
],
|
||
"icon": "linear",
|
||
"color": "indigo",
|
||
"clickAction": "open",
|
||
"priority": 10,
|
||
"hueRole": "hue"
|
||
},
|
||
{
|
||
"id": "linear-project",
|
||
"label": "Linear project",
|
||
"urlRegex": "^https://linear\\.app/(?P<workspace>[\\w-]+)/project/(?P<slug>[a-z0-9][a-z0-9-]{0,118})-(?P<pid>[0-9a-f]{12})(?![a-z0-9-])",
|
||
"idRegex": "^(?:(?P<slug>[a-z0-9][a-z0-9-]{0,118})-(?P<pid>[0-9a-f]{12})|name:(?P<nslug>[a-z0-9][a-z0-9-]{0,118}))$",
|
||
"idTemplate": ["{slug}-{pid}", "name:{nslug}"],
|
||
"urlTemplate": "https://linear.app/{workspace|config.linearWorkspace}/project/{slug}-{pid}",
|
||
"labelTemplate": [{ "match": "^name:", "template": "{nslug:title}" }, { "template": "{slug:title}" }],
|
||
"titleToken": [{ "template": "" }],
|
||
"slugTitleGroup": "slug",
|
||
"toolExtractors": [
|
||
{
|
||
"tool": "mcp__*__get_project",
|
||
"urlFields": ["url"],
|
||
"titleFields": ["name"],
|
||
"stateFields": ["status.name", "status"],
|
||
"metaFields": { "icon": "icon", "color": "color" }
|
||
},
|
||
{
|
||
"tool": "mcp__*__list_projects",
|
||
"itemsPath": "projects[]",
|
||
"urlFields": ["url"],
|
||
"titleFields": ["name"],
|
||
"stateFields": ["status.name", "status"],
|
||
"metaFields": { "icon": "icon", "color": "color" }
|
||
}
|
||
],
|
||
"icon": "folder-kanban",
|
||
"color": "indigo",
|
||
"clickAction": "open",
|
||
"priority": 40,
|
||
"hueRole": "group"
|
||
}
|
||
]
|
||
}
|