Skip to content

Commit 6c58f31

Browse files
authored
Merge pull request #14 from stainless-api/release-please--branches--main--changes--next--components--sdk
release: 0.1.0-alpha.13
2 parents 0328338 + e57ef36 commit 6c58f31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7908
-7283
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '20'
27+
node-version: '22'
28+
29+
- name: Set up pnpm
30+
uses: pnpm/action-setup@v3
31+
with:
32+
version: '10.14.0'
2833

2934
- name: Bootstrap
3035
run: ./scripts/bootstrap
@@ -46,7 +51,12 @@ jobs:
4651
- name: Set up Node
4752
uses: actions/setup-node@v4
4853
with:
49-
node-version: '20'
54+
node-version: '22'
55+
56+
- name: Set up pnpm
57+
uses: pnpm/action-setup@v3
58+
with:
59+
version: '10.14.0'
5060

5161
- name: Bootstrap
5262
run: ./scripts/bootstrap
@@ -81,6 +91,11 @@ jobs:
8191
with:
8292
node-version: '22'
8393

94+
- name: Set up pnpm
95+
uses: pnpm/action-setup@v3
96+
with:
97+
version: '10.14.0'
98+
8499
- name: Bootstrap
85100
run: ./scripts/bootstrap
86101

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.12"
2+
".": "0.1.0-alpha.13"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-c9dbcee416d3ce938a657e6fa1883ea8c40202b0bfb46d7dd5617cf2e844786c.yml
3-
openapi_spec_hash: 4bf38db5a15196d74647490ceebfbb9b
4-
config_hash: e968e8b5403abb8f4faa0b9753db713e
1+
configured_endpoints: 19
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-a3a29065ad8fdc320ffaa9b130843b1d0dc3670a045795fc624936bded3bfe0f.yml
3+
openapi_spec_hash: e1b7059453520913dc4a07ccc9114ed8
4+
config_hash: bebf53e09f502c558eb86ebe727c58dd

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# Changelog
22

3+
## 0.1.0-alpha.13 (2025-08-22)
4+
5+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
6+
7+
### Features
8+
9+
* [WIP] add branch rebasing to the API ([1e4eba9](https://github.com/stainless-api/stainless-api-typescript/commit/1e4eba93445900f3d56b30114e7d005d847ea50c))
10+
* **api:** remove compare mcp tool ([7b5370a](https://github.com/stainless-api/stainless-api-typescript/commit/7b5370afa1392b4f5af6fea319f15f781a49c085))
11+
* **mcp:** add code execution tool ([5fc3df8](https://github.com/stainless-api/stainless-api-typescript/commit/5fc3df86d33af1d2916146b7552ba2361f453cfb))
12+
* **mcp:** add option to infer mcp client ([d07e1bd](https://github.com/stainless-api/stainless-api-typescript/commit/d07e1bdc66f1d31615b118d6686d4f61ac036979))
13+
* **mcp:** parse query string as mcp client options in mcp server ([1aca1db](https://github.com/stainless-api/stainless-api-typescript/commit/1aca1dbe54d20f272156abe1026ffe916d91db46))
14+
15+
16+
### Bug Fixes
17+
18+
* **mcp:** generate additionalProperties=true for map schemas to avoid validation issues ([5984cdd](https://github.com/stainless-api/stainless-api-typescript/commit/5984cddec5aac6c4cbd38ef64ed6d00c6c26bf2d))
19+
* **mcp:** oauth metadata ([9f07302](https://github.com/stainless-api/stainless-api-typescript/commit/9f07302d005e59c97aea7e521e8222f151b37779))
20+
21+
22+
### Chores
23+
24+
* add package to package.json ([1f2e338](https://github.com/stainless-api/stainless-api-typescript/commit/1f2e33849ccac49559f2903fdb95aac1c3c316cc))
25+
* **client:** qualify global Blob ([feffee8](https://github.com/stainless-api/stainless-api-typescript/commit/feffee84b55d706db862861be0f0c01126005c47))
26+
* **deps:** update dependency @types/node to v20.17.58 ([969dd97](https://github.com/stainless-api/stainless-api-typescript/commit/969dd972409b6de717f063b931bfce13b3207ed1))
27+
* **internal:** codegen related update ([0e0e358](https://github.com/stainless-api/stainless-api-typescript/commit/0e0e358a179630d418132a799dbdcc66e5e102bb))
28+
* **internal:** codegen related update ([b0383ec](https://github.com/stainless-api/stainless-api-typescript/commit/b0383ec92ffc1a36e062fab102ea5e3de33ca5a3))
29+
* **internal:** codegen related update ([2293405](https://github.com/stainless-api/stainless-api-typescript/commit/229340561b261a4a9e3afd2ab4b408b7fa5affe7))
30+
* **internal:** codegen related update ([d573489](https://github.com/stainless-api/stainless-api-typescript/commit/d57348912f858042f89fba22a53090f087e63d3f))
31+
* **internal:** formatting change ([1f6025f](https://github.com/stainless-api/stainless-api-typescript/commit/1f6025fa6f984dd07336dcb77c8f028dce4a0161))
32+
* **internal:** make mcp-server publishing public by defaut ([246940f](https://github.com/stainless-api/stainless-api-typescript/commit/246940f200219056a9e1315bc87288e343a00a7d))
33+
* **internal:** refactor array check ([ca0ed80](https://github.com/stainless-api/stainless-api-typescript/commit/ca0ed80b9ac1f751a17cd4ddd94aa6350f352ec3))
34+
* **mcp:** add cors to oauth metadata route ([39f28d9](https://github.com/stainless-api/stainless-api-typescript/commit/39f28d9da323d908f9b67ba084fb7838eccea0a6))
35+
* **mcp:** document remote server in README.md ([354ec27](https://github.com/stainless-api/stainless-api-typescript/commit/354ec272f8841448d581562f9e247ce2f6009bfe))
36+
* **mcp:** minor cleanup of types and package.json ([21ba881](https://github.com/stainless-api/stainless-api-typescript/commit/21ba8813b6780307fc81af852f7dd57b4e4878b7))
37+
* **mcp:** update package.json ([2e6f228](https://github.com/stainless-api/stainless-api-typescript/commit/2e6f2283323ae7779d567186418070ed4a45c478))
38+
* **mcp:** update README ([c3fb351](https://github.com/stainless-api/stainless-api-typescript/commit/c3fb351ba59d1e498e89a7d175e6d81b16a8f18c))
39+
* **mcp:** update types ([2df004c](https://github.com/stainless-api/stainless-api-typescript/commit/2df004c43a4feae95788b42dd0e738a87d0eff82))
40+
* revert to yarn ([67dfcec](https://github.com/stainless-api/stainless-api-typescript/commit/67dfcecf94a9a77b492944f7bac6f5048b90f7e5))
41+
* unrevert yarn ([2174526](https://github.com/stainless-api/stainless-api-typescript/commit/2174526b17c574c85cec785f3cb3bf91a7f4a6b9))
42+
43+
44+
### Documentation
45+
46+
* add contact email and link to docs ([707d851](https://github.com/stainless-api/stainless-api-typescript/commit/707d85194bc368374d3146fb360597667ec30402))
47+
348
## 0.1.0-alpha.12 (2025-08-12)
449

550
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This library provides convenient access to the Stainless REST API from server-side TypeScript or JavaScript.
66

7-
The full API of this library can be found in [api.md](api.md).
7+
The REST API documentation can be found on [www.stainless.com](https://www.stainless.com/docs/getting-started/quickstart-cli). The full API of this library can be found in [api.md](api.md).
88

99
It is generated with [Stainless](https://www.stainless.com/).
1010

SECURITY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ before making any information public.
1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
1919
or products provided by Stainless, please follow the respective company's security reporting guidelines.
2020

21+
### Stainless Terms and Policies
22+
23+
Please contact [email protected] for any questions or concerns regarding the security of our services.
24+
2125
---
2226

2327
Thank you for helping us keep the SDKs and systems they interact with secure.

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Methods:
3232
- <code title="get /v0/projects/{project}/branches/{branch}">client.projects.branches.<a href="./src/resources/projects/branches.ts">retrieve</a>(branch, { ...params }) -> ProjectBranch</code>
3333
- <code title="get /v0/projects/{project}/branches">client.projects.branches.<a href="./src/resources/projects/branches.ts">list</a>({ ...params }) -> BranchListResponsesPage</code>
3434
- <code title="delete /v0/projects/{project}/branches/{branch}">client.projects.branches.<a href="./src/resources/projects/branches.ts">delete</a>(branch, { ...params }) -> unknown</code>
35+
- <code title="put /v0/projects/{project}/branches/{branch}/rebase">client.projects.branches.<a href="./src/resources/projects/branches.ts">rebase</a>(branch, { ...params }) -> ProjectBranch</code>
3536

3637
## Configs
3738

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@stainless-api/sdk",
3-
"version": "0.1.0-alpha.12",
3+
"version": "0.1.0-alpha.13",
44
"description": "The official TypeScript library for the Stainless API",
5-
"author": "Stainless <>",
5+
"author": "Stainless <[email protected]>",
66
"types": "dist/index.d.ts",
77
"main": "dist/index.js",
88
"type": "commonjs",
99
"repository": "github:stainless-api/stainless-api-typescript",
1010
"license": "Apache-2.0",
11-
"packageManager": "[email protected]",
11+
"packageManager": "[email protected]",
1212
"files": [
1313
"**/*"
1414
],
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"test": "./scripts/test",
2121
"build": "./scripts/build",
22-
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
22+
"prepublishOnly": "echo 'to publish, run pnpm build && (cd dist; pnpm publish)' && exit 1",
2323
"format": "./scripts/format",
2424
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build && ./scripts/utils/git-swap.sh; fi",
2525
"tsn": "ts-node -r tsconfig-paths/register",
@@ -44,8 +44,9 @@
4444
"publint": "^0.2.12",
4545
"ts-jest": "^29.1.0",
4646
"ts-node": "^10.5.0",
47-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
47+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
4848
"tsconfig-paths": "^4.0.0",
49+
"tslib": "^2.8.1",
4950
"typescript": "5.8.3",
5051
"typescript-eslint": "8.31.1"
5152
},

packages/mcp-server/README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,45 @@ over time, you can manually enable or disable certain capabilities:
141141
--resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cards
142142
```
143143

144+
## Running remotely
145+
146+
Launching the client with `--transport=http` launches the server as a remote server using Streamable HTTP transport. The `--port` setting can choose the port it will run on, and the `--socket` setting allows it to run on a Unix socket.
147+
148+
Authorization can be provided via the `Authorization` header using the Bearer scheme.
149+
150+
Additionally, authorization can be provided via the following headers:
151+
| Header | Equivalent client option | Security scheme |
152+
| --------------------- | ------------------------ | --------------- |
153+
| `x-stainless-api-key` | `apiKey` | bearerAuth |
154+
155+
A configuration JSON for this server might look like this, assuming the server is hosted at `http://localhost:3000`:
156+
157+
```json
158+
{
159+
"mcpServers": {
160+
"stainless_api_sdk_api": {
161+
"url": "http://localhost:3000",
162+
"headers": {
163+
"Authorization": "Bearer <auth value>"
164+
}
165+
}
166+
}
167+
}
168+
```
169+
170+
The command-line arguments for filtering tools and specifying clients can also be used as query parameters in the URL.
171+
For example, to exclude specific tools while including others, use the URL:
172+
173+
```
174+
http://localhost:3000?resource=cards&resource=accounts&no_tool=create_cards
175+
```
176+
177+
Or, to configure for the Cursor client, with a custom max tool name length, use the URL:
178+
179+
```
180+
http://localhost:3000?client=cursor&capability=tool-name-length%3D40
181+
```
182+
144183
## Importing the tools and server individually
145184

146185
```js
@@ -193,6 +232,7 @@ The following tools are available in this MCP server.
193232
- `retrieve_projects_branches` (`read`): Retrieve a project branch
194233
- `list_projects_branches` (`read`): List project branches
195234
- `delete_projects_branches` (`write`): Delete a project branch
235+
- `rebase_projects_branches` (`write`): Rebase a project branch
196236

197237
### Resource `projects.configs`:
198238

@@ -204,7 +244,6 @@ The following tools are available in this MCP server.
204244
- `create_builds` (`write`): Create a new build
205245
- `retrieve_builds` (`read`): Retrieve a build by ID
206246
- `list_builds` (`read`): List builds for a project
207-
- `compare_builds` (`write`): Creates two builds whose outputs can be compared directly
208247

209248
### Resource `builds.diagnostics`:
210249

packages/mcp-server/package.json

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@stainless-api/sdk-mcp",
3-
"version": "0.1.0-alpha.12",
3+
"version": "0.1.0-alpha.13",
44
"description": "The official MCP Server for the Stainless API",
5-
"author": "Stainless <>",
5+
"author": "Stainless <[email protected]>",
66
"types": "dist/index.d.ts",
77
"main": "dist/index.js",
88
"type": "commonjs",
@@ -13,35 +13,44 @@
1313
},
1414
"homepage": "https://github.com/stainless-api/stainless-api-typescript/tree/main/packages/mcp-server#readme",
1515
"license": "Apache-2.0",
16-
"packageManager": "[email protected]",
16+
"packageManager": "[email protected]",
1717
"private": false,
18+
"publishConfig": {
19+
"access": "public"
20+
},
1821
"scripts": {
1922
"test": "jest",
2023
"build": "bash ./build",
21-
"prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",
22-
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
24+
"prepack": "echo 'to pack, run pnpm build && (cd dist; pnpm pack)' && exit 1",
25+
"prepublishOnly": "echo 'to publish, run pnpm build && (cd dist; pnpm publish)' && exit 1",
2326
"format": "prettier --write --cache --cache-strategy metadata . !dist",
24-
"prepare": "npm run build",
2527
"tsn": "ts-node -r tsconfig-paths/register",
2628
"lint": "eslint --ext ts,js .",
2729
"fix": "eslint --fix --ext ts,js ."
2830
},
2931
"dependencies": {
30-
"@stainless-api/sdk": "file:../../dist/",
32+
"@stainless-api/sdk": "workspace:*",
33+
"@cloudflare/cabidela": "^0.2.4",
3134
"@modelcontextprotocol/sdk": "^1.11.5",
35+
"@valtown/deno-http-worker": "^0.0.21",
36+
"cors": "^2.8.5",
3237
"express": "^5.1.0",
3338
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.6/jq-web.tar.gz",
39+
"qs": "^6.14.0",
3440
"yargs": "^17.7.2",
35-
"@cloudflare/cabidela": "^0.2.4",
3641
"zod": "^3.25.20",
37-
"zod-to-json-schema": "^3.24.5"
42+
"zod-to-json-schema": "^3.24.5",
43+
"zod-validation-error": "^4.0.1"
3844
},
3945
"bin": {
4046
"mcp-server": "dist/index.js"
4147
},
4248
"devDependencies": {
43-
"@types/jest": "^29.4.0",
49+
"@types/cors": "^2.8.19",
4450
"@types/express": "^5.0.3",
51+
"@types/jest": "^29.4.0",
52+
"@types/qs": "^6.14.0",
53+
"@types/yargs": "^17.0.8",
4554
"@typescript-eslint/eslint-plugin": "8.31.1",
4655
"@typescript-eslint/parser": "8.31.1",
4756
"eslint": "^8.49.0",
@@ -52,7 +61,7 @@
5261
"ts-jest": "^29.1.0",
5362
"ts-morph": "^19.0.0",
5463
"ts-node": "^10.5.0",
55-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
64+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
5665
"tsconfig-paths": "^4.0.0",
5766
"typescript": "5.8.3"
5867
},

0 commit comments

Comments
 (0)