@bridge-ds/mcp 0.10.0 → 0.11.1
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.
- package/README.md +8 -6
- package/dist/branches.d.ts +3 -1
- package/dist/{chunk-E5V42VCS.js → chunk-FRHGLK6Z.js} +4948 -3875
- package/dist/{chunk-BZEPCY42.js → chunk-HNGVASTJ.js} +53 -6
- package/dist/context.d.ts +19 -0
- package/dist/explorations.d.ts +175 -14
- package/dist/figma.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +12 -2
- package/dist/pieces.d.ts +11 -4
- package/dist/product-link.d.ts +42 -0
- package/dist/product-repos.d.ts +25 -0
- package/dist/{src-ATD4DJF3.js → src-P42KWNHQ.js} +1 -1
- package/package.json +3 -3
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
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
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"build:package": "node ../../scripts/build-packages.mjs mcp"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@bridge-ds/core": "^0.
|
|
59
|
-
"@bridge-ds/visual": "^0.3.
|
|
58
|
+
"@bridge-ds/core": "^0.22.0",
|
|
59
|
+
"@bridge-ds/visual": "^0.3.16",
|
|
60
60
|
"@modelcontextprotocol/sdk": "1.31.0",
|
|
61
61
|
"typescript": "5.9.3",
|
|
62
62
|
"zod": "3.25.76"
|