Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 3 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -68,15 +68,6 @@ jobs:
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

- name: Upload MCP Server tarball
if: github.repository == 'stainless-sdks/flowglad-typescript'
env:
URL: https://pkg.stainless.com/s?subpackage=mcp-server
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
BASE_PATH: packages/mcp-server
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
Expand All @@ -88,13 +79,10 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Build
run: ./scripts/build

- name: Run tests
run: ./scripts/test
20 changes: 1 addition & 19 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
name: Publish NPM
on:
workflow_dispatch:
inputs:
path:
description: The path to run the release in, e.g. '.' or 'packages/mcp-server'
required: true

release:
types: [published]
Expand All @@ -16,8 +12,6 @@ jobs:
publish:
name: publish
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
Expand All @@ -33,18 +27,6 @@ jobs:

- name: Publish to NPM
run: |
if [ -n "${{ github.event.inputs.path }}" ]; then
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
else
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
fi
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
bash ./bin/publish-npm
env:
NPM_TOKEN: ${{ secrets.FLOWGLAD_NPM_TOKEN || secrets.NPM_TOKEN }}

- name: Upload MCP Server DXT GitHub release asset
run: |
gh release upload ${{ github.event.release.tag_name }} \
packages/mcp-server/flowglad_node_api.mcpb
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
bash ./bin/check-release-environment
env:
NPM_TOKEN: ${{ secrets.FLOWGLAD_NPM_TOKEN || secrets.NPM_TOKEN }}

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ dist-deno
/*.tgz
.idea/
.eslintcache
dist-bundle
*.mcpb

2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CHANGELOG.md
/deno

# don't format tsc output, will break source maps
dist
/dist
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.24.0"
".": "0.25.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-d53efdb1a90202370f6191070b177c81adc4a91fb55e98afb34c353a22f53f80.yml
openapi_spec_hash: ea6ffc0d58287a5e8974898352d7e661
config_hash: 9e63503c65fe4eb194dc4892d4a12985
configured_endpoints: 53
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-599bbd902d653e4f023f1462dfbf6a268d3809bba2e12250339ea372ea05574d.yml
openapi_spec_hash: 65bbe2d6fa2d3c136d71f258928b62c1
config_hash: 9e2894d9f7b4a4b6d46dfdc3a5f8b52d
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
# Changelog
## 0.25.0 (2026-01-11)

Full Changelog: [v0.24.0...v0.25.0](https://github.com/flowglad/flowglad-node/compare/v0.24.0...v0.25.0)

### ⚠ BREAKING CHANGES

* **mcp:** remove deprecated tool schemes
* **mcp:** **Migration:** To migrate, simply modify the command used to invoke the MCP server. Currently, the only supported tool scheme is code mode. Now, starting the server with just `node /path/to/mcp/server` or `npx package-name` will invoke code tools: changing your command to one of these is likely all you will need to do.

### Features

* **api:** manual updates ([29826ca](https://github.com/flowglad/flowglad-node/commit/29826ca3deedb1382c79982f0b985a89e34b6303))


### Bug Fixes

* **mcp:** add client instantiation options to code tool ([9af9932](https://github.com/flowglad/flowglad-node/commit/9af99329f36d61f792255d4695210d67940260c0))
* **mcp:** correct code tool api output types ([197ce20](https://github.com/flowglad/flowglad-node/commit/197ce20b7ee748d289a72f2635adfd771758791c))
* **mcp:** fix env parsing ([8a5559a](https://github.com/flowglad/flowglad-node/commit/8a5559af7e05604e83adc7490fadd8a9e8f6fbda))
* **mcp:** fix options parsing ([ea70ab3](https://github.com/flowglad/flowglad-node/commit/ea70ab343003f46bcde3854187f595f8b338e48c))
* **mcp:** pass base url to code tool ([3ad4714](https://github.com/flowglad/flowglad-node/commit/3ad4714d57a8aa9abe6a903a253033516c944fae))
* **mcp:** update code tool prompt ([79cec40](https://github.com/flowglad/flowglad-node/commit/79cec4063636ccab620615bbcbad29be4c64b7ab))


### Chores

* break long lines in snippets into multiline ([749834d](https://github.com/flowglad/flowglad-node/commit/749834df7ecb9ba1ad1835b056dad9efcf9752e0))
* **internal:** codegen related update ([7992c52](https://github.com/flowglad/flowglad-node/commit/7992c52fc93041d6cf70a64218c3145b3342008c))
* **mcp:** remove deprecated tool schemes ([6d54339](https://github.com/flowglad/flowglad-node/commit/6d5433967c016f96cea8294cbc9bc7b34d869a6e))
* **mcp:** update lockfile ([06783ad](https://github.com/flowglad/flowglad-node/commit/06783ad1f379228e59aac505e5eba2fa824d8e94))


### Documentation

* prominently feature MCP server setup in root SDK readmes ([e385728](https://github.com/flowglad/flowglad-node/commit/e3857289316efbb6e1487b0dde5c1396b1178d35))

## 0.24.0 (2025-12-08)

Full Changelog: [v0.23.0...v0.24.0](https://github.com/flowglad/flowglad-node/compare/v0.23.0...v0.24.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Flowglad
Copyright 2026 Flowglad

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
31 changes: 30 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Types:

- <code><a href="./src/resources/checkout-sessions.ts">ActivateSubscriptionCheckoutSessionClientSelectSchema</a></code>
- <code><a href="./src/resources/checkout-sessions.ts">AddPaymentMethodCheckoutSessionClientSelectSchema</a></code>
- <code><a href="./src/resources/checkout-sessions.ts">InvoiceCheckoutSessionClientSelectSchema</a></code>
- <code><a href="./src/resources/checkout-sessions.ts">ProductCheckoutSessionClientSelectSchema</a></code>
- <code><a href="./src/resources/checkout-sessions.ts">PurchaseCheckoutSessionClientSelectSchema</a></code>
- <code><a href="./src/resources/checkout-sessions.ts">CheckoutSessionCreateResponse</a></code>
Expand Down Expand Up @@ -230,3 +229,33 @@ Methods:
- <code title="get /api/v1/usage-meters/{id}">client.usageMeters.<a href="./src/resources/usage-meters.ts">retrieve</a>(id) -> UsageMeterRetrieveResponse</code>
- <code title="put /api/v1/usage-meters/{id}">client.usageMeters.<a href="./src/resources/usage-meters.ts">update</a>(id, { ...params }) -> UsageMeterUpdateResponse</code>
- <code title="get /api/v1/usage-meters">client.usageMeters.<a href="./src/resources/usage-meters.ts">list</a>({ ...params }) -> UsageMeterListResponse</code>

# Resources

Types:

- <code><a href="./src/resources/resources.ts">ResourceCreateResponse</a></code>
- <code><a href="./src/resources/resources.ts">ResourceRetrieveResponse</a></code>
- <code><a href="./src/resources/resources.ts">ResourceUpdateResponse</a></code>
- <code><a href="./src/resources/resources.ts">ResourceListResponse</a></code>

Methods:

- <code title="post /api/v1/resources">client.resources.<a href="./src/resources/resources.ts">create</a>({ ...params }) -> ResourceCreateResponse</code>
- <code title="get /api/v1/resources/{id}">client.resources.<a href="./src/resources/resources.ts">retrieve</a>(id) -> ResourceRetrieveResponse</code>
- <code title="put /api/v1/resources/{id}">client.resources.<a href="./src/resources/resources.ts">update</a>(id, { ...params }) -> ResourceUpdateResponse</code>
- <code title="get /api/v1/resources">client.resources.<a href="./src/resources/resources.ts">list</a>({ ...params }) -> ResourceListResponse</code>

# ResourceClaims

Types:

- <code><a href="./src/resources/resource-claims.ts">ResourceClaimClaimResponse</a></code>
- <code><a href="./src/resources/resource-claims.ts">ResourceClaimReleaseResponse</a></code>
- <code><a href="./src/resources/resource-claims.ts">ResourceClaimUsageResponse</a></code>

Methods:

- <code title="post /api/v1/resource-claims/{subscriptionId}/claim">client.resourceClaims.<a href="./src/resources/resource-claims.ts">claim</a>(subscriptionID, { ...params }) -> ResourceClaimClaimResponse</code>
- <code title="post /api/v1/resource-claims/{subscriptionId}/release">client.resourceClaims.<a href="./src/resources/resource-claims.ts">release</a>(subscriptionID, { ...params }) -> ResourceClaimReleaseResponse</code>
- <code title="get /api/v1/resource-claims/{subscriptionId}/usage">client.resourceClaims.<a href="./src/resources/resource-claims.ts">usage</a>(subscriptionID, { ...params }) -> ResourceClaimUsageResponse</code>
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default tseslint.config(
},
},
{
files: ['tests/**', 'examples/**', 'packages/**'],
files: ['tests/**', 'examples/**'],
rules: {
'no-restricted-imports': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flowglad/node",
"version": "0.24.0",
"version": "0.25.0",
"description": "The official TypeScript library for the Flowglad API",
"author": "Flowglad <dev-feedback@flowglad.com>",
"types": "dist/index.d.ts",
Expand Down
Loading