@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
package/README.md
CHANGED
|
@@ -45,20 +45,22 @@ Working on the server itself: `npm run mcp:build` in a clone of this repo builds
|
|
|
45
45
|
|
|
46
46
|
<!-- tools:start (generated from the server: npm run readme:tools -w @bridge-ds/mcp) -->
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
75 tools. "writes" tools change files, branches, pull requests or issues; they need a token in remote mode and only run when the person asked.
|
|
49
49
|
|
|
50
50
|
| Tool | Access | What it does |
|
|
51
51
|
| --- | --- | --- |
|
|
52
52
|
| `bridge_apply_suggestion` | writes | Apply a Bridge suggestion to today's code ("Apply Bridge suggestion #42"). |
|
|
53
|
+
| `bridge_archive_exploration` | writes | Archive an exploration, as in Studio: the archived label on its still open pull request hides it from the default lists, home and counts (bridge_list_explorations with archived: true lists them). |
|
|
53
54
|
| `bridge_ask_someone_else` | writes | Ask the other people who can give the missing approvals to review a branch, as "Ask someone else to review" in the Studio review queue, and take the person off its requested reviewers. |
|
|
54
55
|
| `bridge_audit` | reads | Measure how a product codebase uses this design system (local only). |
|
|
55
56
|
| `bridge_back_to_draft` | writes | Take a branch out of review back to draft, as in Studio's More menu. |
|
|
56
57
|
| `bridge_branch_status` | reads | One branch in review as Studio shows it: its product, status (draft, in review, needs design or tech approval, blocked by tests, conflict, ready to merge, merged, closed), approvals (Tier 1: one owner approval; a branch that applies an approved suggestion carries its approvals), tests, how it stands against main, whether the person may merge it (the same verdict as the Merge button and status chips in Studio), and the next step. |
|
|
57
58
|
| `bridge_check_contrast` | reads | Run the repo's WCAG contrast gate (every pair in every brand x theme). |
|
|
58
59
|
| `bridge_close_branch` | writes | Close a branch without merging it, as in Studio's More menu. |
|
|
59
|
-
| `bridge_close_exploration` | writes | Close an exploration without merging it
|
|
60
|
+
| `bridge_close_exploration` | writes | Close an exploration without merging it. |
|
|
60
61
|
| `bridge_combine_branches` | reads | Combined preview of 2 to 4 token branches, as "Try together" in Studio: each branch's own token edits on the latest main, the tokens two branches set differently (pick one per key with picks), and the links that open the combination (the admin demo with the Bridge toolbar, the library views). |
|
|
61
62
|
| `bridge_comment` | writes | Post a comment on a branch, or reply in the thread of a line comment (replyTo: its id from bridge_list_comments). |
|
|
63
|
+
| `bridge_continue_exploration` | writes | Pick an exploration up where it was left, when the person says "Continue Bridge exploration #12" (Studio's Continue in Claude line; shop#12 for a product with its own repository) or asks to continue one by name. |
|
|
62
64
|
| `bridge_create_request` | writes | File a component change request as a GitHub issue labeled component-change (source: mcp), in the same format as Figma and Bridge Studio requests. |
|
|
63
65
|
| `bridge_create_suggestion` | writes | File any change as a suggestion from its payload (schema bridge.suggestion/1: kind, title, summary, and tokens edits, docs, componentSpec or files). |
|
|
64
66
|
| `bridge_draft_docs` | reads | Start or refresh a component's docs.json. |
|
|
@@ -84,8 +86,8 @@ Working on the server itself: `npm run mcp:build` in a clone of this repo builds
|
|
|
84
86
|
| `bridge_list_build_requests` | reads | Build requests: structure changes pushed from Figma (a new variant, option, layout or component) that developers build, as GitHub issues labeled component-change and bridge-build, plus library branches from Figma waiting for a developer. |
|
|
85
87
|
| `bridge_list_comments` | reads | The conversation on a branch and its line comment threads, with the ids to reply to (bridge_comment with replyTo). |
|
|
86
88
|
| `bridge_list_components` | reads | List design system components with family and one-line summary (what it is for). |
|
|
87
|
-
| `bridge_list_explorations` | reads | Explorations of the
|
|
88
|
-
| `bridge_list_products` | reads | The products of this design system (bridge.config.json "products": name, repo or folder, preview link pattern, framework) and the one the current folder or repo belongs to, which tools that start work use when no product is given. |
|
|
89
|
+
| `bridge_list_explorations` | reads | Explorations (pull requests on explore/* branches) of the design system repository and of every product with its own repository (bridge.config.json products[].repo, one read each; a product repository Bridge cannot reach is left out, bridge_list_products says which): ref ("#12", or "shop#12" in a product repository: pass it as is to the other exploration tools), repo, name, purpose, status (active: running; ready: done exploring, waiting for code; building: developers push to it; shipped: merged; promoted: sent to review the older way; closed), archived, author, last update, for open ones the preview links Vercel reports (url null while it has not reported one yet) and the install command a product staging branch uses, read from the preview comment on the pull request (state building until the snapshot of the latest commit is published, never a guessed command), and the component requests implemented on each. |
|
|
90
|
+
| `bridge_list_products` | reads | The products of this design system (bridge.config.json "products": name, repo or folder, preview link pattern, framework; for a product with its own repository, connection: connected, read-only or not-connected, where not-connected means its explorations are left out of the lists until an admin installs the Bridge GitHub App there) and the one the current folder or repo belongs to, which tools that start work use when no product is given. |
|
|
89
91
|
| `bridge_list_requests` | reads | Component change requests: GitHub issues labeled component-change (from Figma, Bridge Studio, the CLI or Claude). |
|
|
90
92
|
| `bridge_list_reviews` | reads | Open pull requests on the repo (flagging the ones Bridge opened) and, locally, the bridge/* proposal branches. |
|
|
91
93
|
| `bridge_list_suggestions` | reads | Suggestions in the repo: GitHub issues labeled bridge-suggestion, each an exact change (tokens, docs, a component spec, a brand, a revert, settings) that the owners approve and a developer applies. |
|
|
@@ -98,7 +100,7 @@ Working on the server itself: `npm run mcp:build` in a clone of this repo builds
|
|
|
98
100
|
| `bridge_plan_brand` | reads | Dry run of a new brand: the brand token file (generated primary and neutral ramps, radius and font roles), copied theme overrides, the bridge.config.json change, every contrast pair for the new brand in light and dark (ok, or the failing pairs), validation issues, the risk tier (always Tier 3, minor) and the PR body. |
|
|
99
101
|
| `bridge_plan_revert` | reads | What undoing a merged token change takes, computed against the CURRENT base branch (not a blind git revert): the inverse edits, conflicts where a token changed again later (with the later PR), changes already undone, contrast before and after, new validation errors, risk tier, files and the PR body ("Revert: <title>", links the original PR). |
|
|
100
102
|
| `bridge_product_branch` | reads | A product branch as Studio shows it: the summary sentence, each linked library branch with its status and reviewers, what its preview means for the product branch and the next action, and the pieces with no library branch yet. |
|
|
101
|
-
| `bridge_promote_exploration` | writes |
|
|
103
|
+
| `bridge_promote_exploration` | writes | "Done exploring" on an exploration (explore/<name>), as in Studio (the tool keeps its old name). |
|
|
102
104
|
| `bridge_propose_brand` | writes | Propose a new brand as a reviewable change. |
|
|
103
105
|
| `bridge_propose_figma_fixes` | writes | Opens the accepted fixes for review like other Bridge changes: figma-fixes.json with them on a new bridge/* branch and a draft pull request labelled drafted-by-claude, figma-fixes and its tier (locally: a new local branch, never pushed). |
|
|
104
106
|
| `bridge_propose_revert` | writes | Plans the revert (or restore) like bridge_plan_revert, then: local repo, commits to a new local bridge/* branch without touching your working tree (never pushes); GitHub with token, new bridge/* branch and a PR labelled revert and its tier (draft for Tier 2 and 3). |
|
|
@@ -112,7 +114,7 @@ Working on the server itself: `npm run mcp:build` in a clone of this repo builds
|
|
|
112
114
|
| `bridge_scaffold_component` | writes | Generate a new component folder per the repo checklist: Name.tsx (forwardRef, typed props), Name.module.css (existing tokens only), stories with AllStates, docs.json with the reference component's keys, a keyboard + axe test when interactive, index.ts. |
|
|
113
115
|
| `bridge_search_tokens` | reads | Find tokens by words in the path or description ("danger text", "focus ring"), by CSS variable, or by value ("#c2410c", "16px": exact and near colors). |
|
|
114
116
|
| `bridge_send_for_review` | writes | Ask for review: a draft branch becomes ready for review, as "Mark as ready" in Studio. |
|
|
115
|
-
| `bridge_start_exploration` | writes | Start an exploration: a branch explore/<slug> from the default branch with a note file, and a DRAFT pull request labeled exploration
|
|
117
|
+
| `bridge_start_exploration` | writes | Start an exploration: a branch explore/<slug> from the default branch with a note file, and a DRAFT pull request labeled exploration. |
|
|
116
118
|
| `bridge_switch_to_published` | writes | Once its library branches shipped, bring main into the product branch (GitHub update branch): it stops carrying the library change and uses the shipped one. |
|
|
117
119
|
| `bridge_try_branch` | reads | Try a branch before it merges: the preview link of each product Vercel reported for it (the admin demo opens with the Bridge toolbar on, as "Try it in the product" in Studio), the other previews, and "Share with a product team": the install command a product team runs in a staging branch, or why there is none yet, with a ready-to-paste message. |
|
|
118
120
|
| `bridge_try_figma_fix` | reads | Checks proposed fixes offline, nothing is written: validates them (the strict figma-fixes.json validator), lays them on the measure, rebuilds the set the way the plugin pulls it, and compares each differing variant with what the code renders. |
|
package/dist/branches.d.ts
CHANGED
|
@@ -191,6 +191,8 @@ export declare function listProducts(ctx: BridgeContext): Promise<{
|
|
|
191
191
|
framework?: string | undefined;
|
|
192
192
|
preview?: string | undefined;
|
|
193
193
|
path?: string | undefined;
|
|
194
|
+
connect?: string | undefined;
|
|
195
|
+
connection?: "unknown" | "not-connected" | "read-only" | "connected" | undefined;
|
|
194
196
|
repo?: string | undefined;
|
|
195
197
|
key: string;
|
|
196
198
|
name: string;
|
|
@@ -237,7 +239,7 @@ export declare function tryBranch(ctx: BridgeContext, a: {
|
|
|
237
239
|
}[];
|
|
238
240
|
share: {
|
|
239
241
|
message?: import("@bridge-ds/core").ShareMessage | undefined;
|
|
240
|
-
state: "ready" | "building" | "failed" | "
|
|
242
|
+
state: "ready" | "building" | "failed" | "shipped" | "closed" | "no-packages";
|
|
241
243
|
install: string | null;
|
|
242
244
|
sentence: string;
|
|
243
245
|
};
|