Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8f1d140
test: tombstone against child_process / exec() returning to src/
tomislav-blocks Nov 19, 2026
764a4a1
fix(deps): clear the production audit (111 advisories -> 0)
tomislav-blocks Nov 19, 2026
de82b8d
feat: remove telemetry and stop reading ./.env in stdio mode
tomislav-blocks Nov 19, 2026
7d466cd
fix: envInt returns NaN for non-numeric env vars
fix2015 Jul 6, 2026
387c2a9
fix: pass unknown paint types through marked instead of throwing
Aug 22, 2026
c0588be
fix: emit valid CSS for text shadows
Iams4kura Sep 12, 2026
6a8d517
fix: preserve node rotation, true size, ink bounds, and explicit line…
Aug 22, 2026
01577ca
test: add characterization tests for FigmaService request/error path
GLips Jun 24, 2026
ccbb628
feat: support fetching multiple nodes in get_figma_data
GLips Jun 24, 2026
ecdc40f
fix: prevent partial-miss crash and tidy multi-node parse
GLips Jun 24, 2026
7daaf88
feat: surface unresolved node ids to the caller on a partial miss
GLips Jun 24, 2026
8b22087
fix(figma-api): type component properties against rest-api-spec 0.47
tomislav-blocks Nov 19, 2026
18bcfb1
feat(auth): resolve the Figma credential on every request, retry once…
tomislav-blocks Nov 19, 2026
7060eac
chore: rename to @blocksuser/figma-mcp and document the Blocks fork
tomislav-blocks Nov 19, 2026
96cdaf2
feat(tools): add read-only REST tools for parity with the official Fi…
tomislav-blocks Nov 19, 2026
77aaf1d
ci: publish to npm with a manual workflow like mcp-linear (drop relea…
tomislav-blocks Nov 24, 2026
e39e60d
chore: add scripts/publish.sh, mcp-linear's local publish script on pnpm
tomislav-blocks Nov 24, 2026
a67846e
fix(publish): fall back to npx pnpm and install deps when pnpm is not…
tomislav-blocks Nov 24, 2026
e9ee9f1
chore: rename the package to @blocksuser/mcp-figma (matches @blocksus…
tomislav-blocks Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 19 additions & 38 deletions .claude/commands/release.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,28 @@
# Release

Review and publish a new release.
Publish a new `@blocksuser/mcp-figma` release to npm.

## Steps

1. **Check for a release-please PR:**
Run `gh pr list --repo GLips/Figma-Context-MCP --label "autorelease: pending" --json number,title,url` to find the open release PR.
1. **Decide the bump** from what landed on `main` since the last tag:
`git log $(git describe --tags --abbrev=0)..origin/main --oneline` (or
`gh release view --repo BlocksOrg/Figma-Context-MCP` for the previous release). Conventional
prefixes map to the bump: `fix:` → patch, `feat:` → minor, breaking change → major.

If no release PR exists, inform the user: "No pending release PR. Release-please creates one automatically when conventional commits (`fix:`, `feat:`) land on `main`."
2. **Confirm with the user** via AskUserQuestion: "Run the Publish workflow with bump `<type>`
(v<current> → v<next>)?" Never dispatch without confirmation — it publishes to the public
registry and cannot be unpublished after 72 h.

2. **Show what's in the release:**
Run `gh pr view <number> --json body` to display the pending changelog and version bump. Summarize:
3. **Publish** — either run `./scripts/publish.sh <patch|minor|major>` locally (then `git commit -am "chore: release vX.Y.Z" && git tag vX.Y.Z && git push --follow-tags && gh release create vX.Y.Z --generate-notes`), or dispatch the workflow:
`gh workflow run publish.yml --repo BlocksOrg/Figma-Context-MCP -f version=<patch|minor|major>`
then `gh run list --repo BlocksOrg/Figma-Context-MCP --workflow publish.yml --limit 1` and
`gh run watch <id>`. The job type-checks, tests, builds, bumps `package.json` + `server.json`,
pushes `chore: release vX.Y.Z` + tag, creates the GitHub Release (generated notes) and runs
`pnpm publish --access public` with the `NPM_TOKEN` secret.

- New version number
- Number of features, fixes, and other changes
- List of included commits
4. **Verify:** `npm view @blocksuser/mcp-figma version` shows the new version and
`gh release view vX.Y.Z --repo BlocksOrg/Figma-Context-MCP` exists.

3. **Ask for confirmation:**
Use AskUserQuestion: "Merge this release PR to publish v<version> to npm?"

- **Merge and publish** — Proceed with merge
- **Review diff first** — Show `gh pr diff <number>`
- **Cancel** — Stop without merging

4. **Merge the release PR:**
Run `gh pr merge <number> --rebase --repo GLips/Figma-Context-MCP` (or merge via the GitHub UI).

**Use rebase, not squash.** Feature PRs are squash-merged (so each conventional-commit title,
with its `(#NNN)`, feeds the changelog), but the release PR is the single `chore(main): release
X.Y.Z` commit release-please authored. Rebase replays it onto `main` verbatim — bot authorship,
clean subject, no `(#NNN)`. Squash would rewrite all three and diverge from every prior release
(check `git log` for `chore(main): release` commits — they're all single-parent, bot-authored,
no PR suffix). Merging through the UI does the same thing.

5. **Verify:**
Run `gh run list --repo GLips/Figma-Context-MCP --limit 1` to confirm the Release workflow triggered.
Report the workflow run URL so the user can monitor npm publish.

The Release workflow also bumps `server.json` and publishes to npm (OIDC) and the MCP registry —
all hands-off. No manual steps beyond merging the PR.

6. **Write the curated release notes:**
Once the workflow has published the GitHub Release (the tag exists), run `/release-notes` to
replace the mechanical, auto-generated Release body with brand-voice highlights. release-please
only produces a terse commit-title list; `/release-notes` turns it into something worth reading.
`CHANGELOG.md` is left as-is — release-please owns it.
5. **Downstream:** the sandbox images install the package from `dependencies/*.package.json` in
BlocksOrg/agents (`"@blocksuser/mcp-figma": "^X.Y"`) — a major bump needs that range widened
and a new agents revision deployed; minor/patch are picked up on the next image build.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ If applicable, add screenshots to help explain your problem. Often a screenshot
Provide your MCP JSON configuration, if applicable. E.g.

```
"figma-developer-mcp": {
"@blocksuser/mcp-figma": {
"command": "npx",
"args": [
"figma-developer-mcp",
"@blocksuser/mcp-figma",
"--figma-api-key=REDACTED",
"--stdio"
]
Expand All @@ -50,7 +50,7 @@ Provide your MCP JSON configuration, if applicable. E.g.
If you're running the MCP locally on the command line, include all the logs for those like so:

```
> npx figma-developer-mcp --figma-api-key=REDACTED
> npx @blocksuser/mcp-figma --figma-api-key=REDACTED

Configuration:
- FIGMA_API_KEY: ****8pXg (source: cli)
Expand All @@ -68,7 +68,7 @@ If you're running the MCP in a code editor like Cursor, there are MCP-specific l
```
2025-03-18 11:36:22.251 [info] pnpx: Handling CreateClient action
2025-03-18 11:36:22.251 [info] pnpx: getOrCreateClient for stdio server. process.platform: darwin isElectron: true
2025-03-18 11:36:22.251 [info] pnpx: Starting new stdio process with command: pnpx figma-developer-mcp --figma-api-key=REDACTED --stdio
2025-03-18 11:36:22.251 [info] pnpx: Starting new stdio process with command: pnpx @blocksuser/mcp-figma --figma-api-key=REDACTED --stdio
2025-03-18 11:36:23.987 [info] pnpx: Successfully connected to stdio server
2025-03-18 11:36:23.987 [info] pnpx: Storing stdio client
2025-03-18 11:36:23.988 [info] MCP: Handling ListOfferings action
Expand Down
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
production-dependencies:
dependency-type: production
development-dependencies:
dependency-type: development
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ jobs:

- name: Test
run: pnpm test

# Runtime dependency tree must stay free of high/critical advisories
# (see the Blocks fork section in README). Dev-only advisories are
# tolerated here; dependabot keeps them moving.
- name: Audit production dependencies
run: pnpm audit --prod --audit-level=high
84 changes: 84 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Publish to npm

# Same shape as BlocksOrg/mcp-linear's publish workflow: a maintainer picks the
# bump, the job bumps package.json (+ server.json), tags, creates the GitHub
# Release and publishes to npm with the org's NPM_TOKEN. No release-please, no
# OIDC trusted publishing — one secret, one button, like the Linear server.
on:
workflow_dispatch:
inputs:
version:
description: 'Version bump type (patch, minor, major)'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major

jobs:
publish:
if: ${{ github.repository_owner == 'BlocksOrg' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10.10.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org/'
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Type check
run: pnpm type-check

- name: Run tests
run: pnpm test

- name: Build
run: pnpm build

- name: Version bump
id: version
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
npm version ${{ github.event.inputs.version }} --no-git-tag-version
VERSION=$(node -p "require('./package.json').version")
# server.json (MCP registry manifest) carries the same version twice; keep it in step.
jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > server.tmp && mv server.tmp server.json
git add package.json server.json
git commit -m "chore: release v${VERSION} [skip ci]"
git tag "v${VERSION}"
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"

- name: Push changes
run: git push --follow-tags

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.VERSION }}
generate_release_notes: true

# --access public: scoped packages default to restricted on first publish.
# --no-git-checks: the bump commit was just pushed; pnpm's branch/clean
# checks are not meaningful on a CI checkout.
- name: Publish to npm
run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70 changes: 0 additions & 70 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .release-please-manifest.json

This file was deleted.

9 changes: 7 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ pnpm test -- --testNamePattern="pattern"

### Releasing

Releases are automated via [release-please](https://github.com/googleapis/release-please). On merge to `main`, release-please reads conventional commit prefixes (`fix:`, `feat:`, `feat!:`) and maintains a release PR. Merging the release PR publishes to npm via OIDC trusted publishing.
Releases are manual and mirror BlocksOrg/mcp-linear. Two equivalent paths:

- **Locally:** `./scripts/publish.sh <patch|minor|major> [--rc] [--dry-run]` (the same script mcp-linear ships) — bumps `package.json` + `server.json`, `pnpm build`, `pnpm publish --access public --tag latest|rc` with your own npm login. Then commit the bump and tag it: `git commit -am "chore: release vX.Y.Z" && git tag vX.Y.Z && git push --follow-tags`.
- **From GitHub:** the **Publish to npm** workflow (`.github/workflows/publish.yml`, Actions tab → "Run workflow", or `gh workflow run publish.yml -f version=patch|minor|major`) does the same plus the commit, tag and GitHub Release, using the `NPM_TOKEN` repository secret (the same org token mcp-linear publishes with).

Nothing publishes on merge to `main`.

### PR Title Convention

PRs are squash-merged, so the PR title becomes the commit message that release-please parses. Always use [Conventional Commit](https://www.conventionalcommits.org/) prefixes in PR titles.
PRs are squash-merged, so the PR title becomes the commit message on `main` and feeds the generated release notes. Use [Conventional Commit](https://www.conventionalcommits.org/) prefixes in PR titles; pick the bump type (`fix:` → patch, `feat:` → minor, breaking → major) when you run the publish workflow.

## Architecture

Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This focused approach ensures:
1. **Clone the repository:**

```bash
git clone https://github.com/GLips/Figma-Context-MCP.git
git clone https://github.com/BlocksOrg/Figma-Context-MCP.git
cd Figma-Context-MCP
```

Expand Down Expand Up @@ -148,14 +148,14 @@ src/

### Commit Messages

This project uses [Conventional Commits](https://www.conventionalcommits.org/) to automate versioning and changelog generation. The maintainer applies the correct prefix when squash-merging your PR — you don't need to worry about this in your individual commits.
This project uses [Conventional Commits](https://www.conventionalcommits.org/). The maintainer applies the correct prefix when squash-merging your PR — you don't need to worry about this in your individual commits.

For reference, these prefixes determine version bumps:
Releases are cut by hand with the **Publish to npm** workflow (see `CLAUDE.md` → Releasing); the prefixes tell the maintainer which bump to pick:

- `fix: <description>` — patch release (0.6.4 → 0.6.5)
- `feat: <description>` — minor release (0.6.4 → 0.7.0)
- `feat!: <description>` or `BREAKING CHANGE:` footer — major release (0.6.4 → 1.0.0)
- `chore:`, `docs:`, `test:`, `refactor:` — no release triggered
- `fix: <description>` — patch release (0.14.0 → 0.14.1)
- `feat: <description>` — minor release (0.14.0 → 0.15.0)
- `feat!: <description>` or `BREAKING CHANGE:` footer — major release (0.14.0 → 1.0.0)
- `chore:`, `docs:`, `test:`, `refactor:` — no release needed on their own

### What We're Looking For

Expand Down
Loading
Loading