Skip to content

Commit b9cc92f

Browse files
refactor(mention): drop unused Jira/Figma MCP index path
Keep the disk-backed PR and thread indexes plus paste chips for Jira and Figma URLs. Remove MCP discovery/sync that never wired into `@`/`#`. Co-authored-by: Cursor <[email protected]>
1 parent 4b86e5f commit b9cc92f

9 files changed

Lines changed: 3 additions & 1693 deletions

File tree

‎apps/server/src/mention/MentionIndex.ts‎

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import type {
2-
MentionIndexFigmaPayload,
32
MentionIndexHit,
4-
MentionIndexJiraPayload,
53
MentionIndexProviderId,
64
MentionIndexPullRequestPayload,
75
MentionIndexSearchInput,
@@ -35,8 +33,6 @@ export interface MentionIndexRow {
3533
readonly tokens: string;
3634
readonly pullRequest?: MentionIndexPullRequestPayload;
3735
readonly thread?: MentionIndexThreadPayload;
38-
readonly jira?: MentionIndexJiraPayload;
39-
readonly figma?: MentionIndexFigmaPayload;
4036
readonly updatedAt: number;
4137
}
4238

@@ -55,7 +51,7 @@ const ScopeBlob = Schema.fromJsonString(
5551
Schema.Struct({
5652
rows: Schema.Array(
5753
Schema.Struct({
58-
providerId: Schema.Literals(["pull-request", "thread", "jira", "figma"]),
54+
providerId: Schema.Literals(["pull-request", "thread"]),
5955
itemKey: Schema.String,
6056
label: Schema.String,
6157
description: Schema.String,
@@ -82,23 +78,6 @@ const ScopeBlob = Schema.fromJsonString(
8278
projectId: Schema.String,
8379
}),
8480
),
85-
jira: Schema.optionalKey(
86-
Schema.Struct({
87-
key: Schema.String,
88-
summary: Schema.String,
89-
url: Schema.String,
90-
projectKey: Schema.optionalKey(Schema.String),
91-
status: Schema.optionalKey(Schema.String),
92-
}),
93-
),
94-
figma: Schema.optionalKey(
95-
Schema.Struct({
96-
fileKey: Schema.String,
97-
name: Schema.String,
98-
url: Schema.String,
99-
nodeId: Schema.optionalKey(Schema.String),
100-
}),
101-
),
10281
updatedAt: Schema.Number,
10382
}),
10483
),
@@ -269,8 +248,6 @@ export const make = Effect.gen(function* () {
269248
score,
270249
...(row.pullRequest ? { pullRequest: row.pullRequest } : {}),
271250
...(row.thread ? { thread: row.thread } : {}),
272-
...(row.jira ? { jira: row.jira } : {}),
273-
...(row.figma ? { figma: row.figma } : {}),
274251
});
275252
}
276253
}

‎apps/server/src/mention/MentionIndexFigmaSyncer.ts‎

Lines changed: 0 additions & 283 deletions
This file was deleted.

0 commit comments

Comments
 (0)