Skip to content

Commit 667d4fb

Browse files
committed
working through CI/CD errors to clear them out
1 parent 8cd53c5 commit 667d4fb

4 files changed

Lines changed: 120 additions & 9 deletions

File tree

packages/mcp-server/src/services/graph-service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ import {
3333
} from '../utils/sanitizer.js';
3434
import {
3535
generateUniqueNodeId,
36-
generateUniqueEdgeId,
37-
generateUniqueGraphId,
38-
validateIdFormat,
3936
detectIdCollisions
4037
} from '../utils/id-generator.js';
4138
import { electCoordinator } from '../utils/leader-election.js';

packages/mcp-server/src/types/graph.ts

Lines changed: 118 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ export interface GraphFilters {
7171
offset?: number;
7272
}
7373

74-
// Neo4j response types
75-
export interface Neo4jInteger {
76-
toNumber(): number;
77-
}
74+
// Neo4j response types (using imported Neo4jInteger from driver)
7875

7976
export interface Neo4jDateTime {
8077
toString(): string;
@@ -96,6 +93,7 @@ export interface MCPContent {
9693

9794
export interface MCPResponse {
9895
content: MCPContent[];
96+
isError?: boolean;
9997
}
10098

10199
// Neo4j parameter types - using Neo4jValue for type safety
@@ -204,4 +202,120 @@ export interface WorkloadPredictions {
204202
completion_trends?: string;
205203
bottleneck_predictions?: unknown[];
206204
capacity_recommendations?: unknown[];
205+
}
206+
207+
// MCP Interface Args - exported for index.ts
208+
export interface UpdatePrioritiesArgs {
209+
node_id: string;
210+
priority_executive?: number;
211+
priority_individual?: number;
212+
priority_community?: number;
213+
recalculate_computed?: boolean;
214+
}
215+
216+
export interface BulkUpdatePrioritiesArgs {
217+
updates: Array<{
218+
node_id: string;
219+
priority_executive?: number;
220+
priority_individual?: number;
221+
priority_community?: number;
222+
}>;
223+
recalculate_all?: boolean;
224+
}
225+
226+
export interface GetPriorityInsightsArgs {
227+
filters?: {
228+
min_priority?: number;
229+
priority_type?: 'executive' | 'individual' | 'community' | 'computed';
230+
node_types?: string[];
231+
status?: string[];
232+
};
233+
include_statistics?: boolean;
234+
include_trends?: boolean;
235+
}
236+
237+
export interface GetContributorPrioritiesArgs {
238+
contributor_id: string;
239+
priority_type?: 'all' | 'executive' | 'individual' | 'community' | 'composite';
240+
status_filter?: NodeStatus[];
241+
limit?: number;
242+
include_dependencies?: boolean;
243+
}
244+
245+
export interface GetContributorWorkloadArgs {
246+
contributor_id: string;
247+
include_type_distribution?: boolean;
248+
include_priority_distribution?: boolean;
249+
include_projects?: boolean;
250+
include_timeline?: boolean;
251+
time_window_days?: number;
252+
}
253+
254+
export interface GetCollaborationNetworkArgs {
255+
focus_contributor?: string;
256+
project_scope?: string;
257+
time_window_days?: number;
258+
collaboration_strength?: 'all' | 'strong' | 'moderate' | 'weak';
259+
include_network_metrics?: boolean;
260+
include_recommendations?: boolean;
261+
}
262+
263+
export interface BulkOperationsArgs {
264+
operations: Array<{
265+
type: 'create_node' | 'update_node' | 'create_edge' | 'delete_edge';
266+
params: Record<string, unknown>;
267+
}>;
268+
transaction?: boolean;
269+
rollback_on_error?: boolean;
270+
}
271+
272+
export interface CreateGraphArgs {
273+
name: string;
274+
description?: string;
275+
type?: GraphType;
276+
settings?: GraphSettings;
277+
parentGraphId?: string;
278+
teamId?: string;
279+
isShared?: boolean;
280+
}
281+
282+
export interface ListGraphsArgs {
283+
type?: GraphType;
284+
status?: GraphStatus;
285+
teamId?: string;
286+
isShared?: boolean;
287+
limit?: number;
288+
offset?: number;
289+
}
290+
291+
export interface GetGraphDetailsArgs {
292+
graphId: string;
293+
}
294+
295+
export interface UpdateGraphArgs {
296+
graphId: string;
297+
name?: string;
298+
description?: string;
299+
type?: GraphType;
300+
settings?: GraphSettings;
301+
isShared?: boolean;
302+
status?: GraphStatus;
303+
}
304+
305+
export interface DeleteGraphArgs {
306+
graphId: string;
307+
force?: boolean;
308+
}
309+
310+
export interface ArchiveGraphArgs {
311+
graphId: string;
312+
reason?: string;
313+
}
314+
315+
export interface CloneGraphArgs {
316+
sourceGraphId: string;
317+
newName: string;
318+
includeNodes?: boolean;
319+
includeEdges?: boolean;
320+
newTeamId?: string;
207321
}

packages/mcp-server/src/utils/id-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let sequenceCounter = 0;
99
const MAX_SEQUENCE = 999999; // Reset after this to prevent overflow
1010

1111
// Process start time to ensure uniqueness across restarts
12-
const PROCESS_START_TIME = Date.now();
12+
// const PROCESS_START_TIME = Date.now();
1313

1414
// Machine ID based on environment (or generate random one)
1515
const MACHINE_ID = process.env.MACHINE_ID || randomBytes(3).toString('hex');

packages/mcp-server/src/utils/sanitizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function sanitizeHTML(input: string): string {
1515
// First decode URL encoding to prevent bypass attacks
1616
try {
1717
sanitized = decodeURIComponent(sanitized);
18-
} catch (e) {
18+
} catch {
1919
// If decoding fails, continue with original (probably malformed URL encoding)
2020
}
2121

0 commit comments

Comments
 (0)