@bridge-ds/mcp 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ import { type GitHubClient, type ProductConfig } from '@bridge-ds/core';
2
+ import type { BridgeContext } from './context.js';
3
+ /** A client for a product's own repository with this context's token: new branches need the explore/ prefix. */
4
+ export declare const productClient: (ctx: BridgeContext, repo: string) => GitHubClient;
5
+ /** Every product with its own repository, and a client for it. */
6
+ export declare function productRepoClients(ctx: BridgeContext, ds: GitHubClient): Promise<{
7
+ product: ProductConfig;
8
+ repo: string;
9
+ client: GitHubClient;
10
+ }[]>;
11
+ /** Where a reference points: the client to read and write it with, the number or name there, and its product. */
12
+ export interface Located {
13
+ gh: GitHubClient;
14
+ ref: number | string;
15
+ /** Set for a product's own repository: the product and "owner/name". */
16
+ product?: ProductConfig | undefined;
17
+ repo?: string | undefined;
18
+ }
19
+ /**
20
+ * Which repository an exploration or product branch reference means (see the file comment). `ds` is the design
21
+ * system repository's client. Throws in plain words for a product or repository bridge.config.json does not list.
22
+ */
23
+ export declare function locate(ctx: BridgeContext, input: string | number, ds: GitHubClient): Promise<Located>;
24
+ /** The number of a located pull request, or how to name one. */
25
+ export declare function locatedNumber(l: Located, input: string | number): number;
package/dist/server.d.ts CHANGED
@@ -2,4 +2,31 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import type { BridgeContext } from './context.js';
3
3
  /** The package version, injected at build time; tests and source runs fall back to "dev". */
4
4
  export declare const VERSION: string;
5
- export declare function createServer(ctx: BridgeContext): McpServer;
5
+ /** The Bridge site: it serves the hosted connector (/mcp) and the official icons. */
6
+ export declare const BRIDGE_SITE = "https://bridge.floriangouloubi.com";
7
+ /**
8
+ * How clients show this server (MCP 2025-11-25, Implementation: `title` is the display name, `icons` the images; the
9
+ * SDK here supports that version). `name` stays machine-safe. Icons are absolute https URLs on the same domain as the
10
+ * hosted connector, PNG first since every client that renders icons must support it.
11
+ */
12
+ export declare const SERVER_INFO: {
13
+ name: string;
14
+ title: string;
15
+ version: string;
16
+ websiteUrl: string;
17
+ icons: {
18
+ src: string;
19
+ mimeType: string;
20
+ sizes: string[];
21
+ }[];
22
+ };
23
+ /** How a server is built for where it runs. */
24
+ export interface ServerOptions {
25
+ /**
26
+ * Tools this server neither lists nor runs. The hosted connector (Bridge inside the team's Claude) leaves out the
27
+ * merge (bridge_merge_branch and its owner override): agents never merge there, a person does. The local CLI and
28
+ * MCP server keep every tool.
29
+ */
30
+ exclude?: readonly string[] | undefined;
31
+ }
32
+ export declare function createServer(ctx: BridgeContext, opts?: ServerOptions): McpServer;
@@ -11,7 +11,7 @@ import {
11
11
  referenceImagePath,
12
12
  selectTokenFiles,
13
13
  showFile
14
- } from "./chunk-ZVORAO5H.js";
14
+ } from "./chunk-WSNJYGA5.js";
15
15
 
16
16
  // ../visual/src/run.ts
17
17
  import { existsSync as existsSync3 } from "node:fs";
package/dist/studio.d.ts CHANGED
@@ -94,6 +94,7 @@ export declare function getSettings(ctx: BridgeContext): Promise<{
94
94
  main: string;
95
95
  roles: {
96
96
  teamsNotRead?: string[] | undefined;
97
+ tier1Publish: string;
97
98
  soloOwner?: string | undefined;
98
99
  designApproval: string[];
99
100
  techApproval: string[];
@@ -146,6 +146,7 @@ export declare function getSuggestionOp(ctx: BridgeContext, a: {
146
146
  }[];
147
147
  } | undefined;
148
148
  approvals: {
149
+ ownerOverride?: string | undefined;
149
150
  soloOwner?: string | undefined;
150
151
  notCounted?: string[] | undefined;
151
152
  staleReviews?: string[] | undefined;
@@ -226,7 +227,13 @@ export declare function getSuggestionOp(ctx: BridgeContext, a: {
226
227
  merged: boolean;
227
228
  }[];
228
229
  }>;
229
- export type SuggestionReviewEventArg = 'approve' | 'request-changes' | 'comment' | 'decline';
230
+ export type SuggestionReviewEventArg = 'approve' | 'request-changes' | 'comment' | 'decline' | 'override';
231
+ /** The owner override on a suggestion, as Studio and History say it. */
232
+ export declare const suggestionOverrideLine: (o: {
233
+ login: string;
234
+ reason: string;
235
+ missing: readonly string[];
236
+ }) => string;
230
237
  /**
231
238
  * bridge_review_suggestion / `bridge review <n>`: approve, request changes, comment on or decline a suggestion, as the
232
239
  * token's user. Approvals count only from the owners in bridge.config.json and only on the version reviewed
@@ -244,6 +251,16 @@ export declare function reviewSuggestionOp(ctx: BridgeContext, a: {
244
251
  number: number;
245
252
  status: SuggestionStatus;
246
253
  said: string;
254
+ } | {
255
+ next: string;
256
+ warnings?: string[] | undefined;
257
+ number: number;
258
+ event: "override";
259
+ counts: boolean;
260
+ version: string;
261
+ status: SuggestionStatus;
262
+ said: string;
263
+ comment: string;
247
264
  } | {
248
265
  next: string;
249
266
  warnings?: string[] | undefined;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@bridge-ds/mcp",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "Bridge MCP server: lets Claude (Claude Code, Claude Desktop or any MCP client) read, check and propose changes to a DTCG design system repo through pull requests.",
6
- "license": "MIT",
6
+ "license": "FSL-1.1-MIT",
7
7
  "author": "Florian Gouloubi",
8
8
  "homepage": "https://github.com/peterbono/ai-design-system-demo/tree/main/packages/mcp#readme",
9
9
  "repository": {
@@ -55,8 +55,8 @@
55
55
  "build:package": "node ../../scripts/build-packages.mjs mcp"
56
56
  },
57
57
  "dependencies": {
58
- "@bridge-ds/core": "^0.19.0",
59
- "@bridge-ds/visual": "^0.3.13",
58
+ "@bridge-ds/core": "^0.21.0",
59
+ "@bridge-ds/visual": "^0.3.15",
60
60
  "@modelcontextprotocol/sdk": "1.31.0",
61
61
  "typescript": "5.9.3",
62
62
  "zod": "3.25.76"