Commit Graph

15 Commits

Author SHA1 Message Date
aptsalt 980a31bc4b fix(mcp): sync User-Agent version with package.json and add CLI validation tests (#343)
* fix(mcp): sync User-Agent version with package.json and add missing CLI tests

- VERSION in userAgent.ts was stuck at 0.3.1 while package.json is 0.3.3
- Add test coverage for validateApiKey, validateStripeAccount, and --tools deprecation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* style: fix Prettier formatting in test file

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(mcp): inject version at build time via PACKAGE_VERSION

Replace hardcoded VERSION constant with process.env.PACKAGE_VERSION,
injected at build time by scripts/inject-version.js. This mirrors the
pattern used by the shared toolkit (tsup define in tools/typescript)
and eliminates manual version sync between userAgent.ts and package.json.

- userAgent.ts: read VERSION from process.env.PACKAGE_VERSION
- scripts/inject-version.js: post-tsc step replaces the env reference
  with the actual version from package.json
- jest.setup.ts: sets PACKAGE_VERSION for test environment
- package.json: updated build script to run inject-version.js

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(mcp): replace inject-version.js with tsup build system

Use tsup's define option to inline PACKAGE_VERSION at build time,
matching the pattern used by the shared toolkit (tools/typescript).
Removes the brittle post-build string replacement script.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: aptsalt <aptsalt@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 21:49:27 +02:00
matv-stripe 18313f3dc6 fix missing user-agent file (Bump version from 0.3.2 to 0.3.3) (#330)
* Bump version from 0.3.2 to 0.3.3

* Fix package.json to include useragent.js

* Modify files field to include all dist files

Updated the 'files' field to include all files in the 'dist' directory.
2026-03-24 10:22:25 -04:00
matv-stripe 5d09320414 update (#327) 2026-03-23 16:36:31 -04:00
Matt Van Horn ac8fdfa625 Proxy MCP client name in local stdio server User-Agent (#304)
* Proxy MCP client name in local stdio server User-Agent

Extract the client name from the MCP initialize request and include it
in the User-Agent header sent to mcp.stripe.com. When a client like
Cursor or Claude Desktop connects, the User-Agent now reads
"stripe-mcp-local/0.3.1 (cursor)" instead of just "stripe-mcp-local/0.3.1".

The HTTP transport creation is deferred until the first stdio message
arrives, so the client name from the initialize request can be captured
before any HTTP requests are made.

Fixes #250

* Fix CI test failure by moving utility functions to separate module

Move extractClientName and buildUserAgent into userAgent.ts so tests
don't transitively import the MCP SDK's streamableHttp transport, which
pulls in pkce-challenge (ESM-only) and breaks Jest in CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude

* Remove unnecessary re-export of extractClientName and buildUserAgent

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Keshav Chakrapani <keshavc@stripe.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 15:50:49 -04:00
sgr-stripe 335c11bbf0 Fix broken npm publish by including missing dist/cli.js (#249) 2026-02-12 13:37:29 -05:00
sgr-stripe 66d51f78b2 Add repository to package.json 2026-02-12 10:51:32 -05:00
sgr-stripe feb368fe0b Update docs for latest tool changes 2026-02-11 13:17:05 -05:00
sgr-stripe 9aae6ea6e0 release prep: consistency and migration fixes (#243) 2026-02-10 17:42:16 -05:00
sgr-stripe 1cd56cd921 [modelcontextprotocol] connect directly to mcp server (#237) 2026-02-06 17:46:56 -05:00
matv-stripe a15458b753 update mcp tool list (#193) 2025-11-06 16:32:04 -05:00
Mike Fix 9ff185aeeb repo name (#184) 2025-11-04 08:36:20 -08:00
Mike Fix 4eb0089a69 LICENSE symlinks (#181) 2025-10-31 09:28:15 -07:00
jleong-stripe 0d9c51804e add overrides and bump version (#173) 2025-10-29 15:34:23 -04:00
sgr-stripe da81e33169 Publish to MCP Registry (#168) 2025-10-28 18:14:16 -07:00
matv-stripe bf9c5e3444 [folder restructure] Move all tool related items to a tools/ folder (#165)
* update workflows

* move

* update

* update

* fix license
2025-10-24 15:50:47 -04:00