Skip to content

Commit b3d81f1

Browse files
stainless-botmeorphismeorphisstainless-app[bot]
authored
release: 0.1.0-alpha.17 (#18)
* Update Dockerfile * Update Dockerfile * Update Dockerfile * Revert "Update Dockerfile" This reverts commit 20bdadc. * chore: fix dockerfile * chore(internal): fix incremental formatting in some cases * chore(mcp): allow pointing `docs_search` tool at other URLs * chore(internal): codegen related update * chore(internal): ignore .eslintcache * chore(internal): codegen related update * fix(mcp): fix cli argument parsing logic * fix(mcp): resolve a linting issue in server code * chore: update lockfile * chore(internal): remove .eslintcache * chore(internal): codegen related update * chore: update mcp dockerfile * chore(jsdoc): fix @link annotations to refer only to parts of the package‘s public interface * chore(internal): use npm pack for build uploads * feat: Expose connection-specific decorated OAS * chore(internal): codegen related update * chore: extract some types in mcp docs * chore: update docstrings * chore(internal): codegen related update * chore(internal): codegen related update * chore(internal): codegen related update * codegen metadata * chore(internal): codegen related update * chore(internal): codegen related update * chore(internal): codegen related update * fix(mcpb): pin @anthropic-ai/mcpb version * chore(internal): codegen related update * chore(internal): codegen related update * chore(internal): grammar fix (it's -> its) * chore: use structured error when code execution tool errors * chore: mcp code tool explicit error message when missing a run function * feat(mcp): enable optional code execution tool on http mcp servers * chore(mcp): add friendlier MCP code tool errors on incorrect method invocations * chore(mcp): add line numbers to code tool errors * docs(mcp): add a README button for one-click add to Cursor * chore(internal): codegen related update * docs(mcp): add a README link to add server to VS Code or Claude Code * chore(internal): codegen related update * chore(internal): codegen related update * chore(internal): codegen related update * chore(mcp): clarify http auth error * chore(internal): codegen related update * fix(mcp): return tool execution error on jq failure * chore(mcp): upgrade jq-web * feat(api): add branch reset functionality * codegen metadata * chore(internal): codegen related update * feat(mcp): add detail field to docs search tool * chore: skip spec resource * chore(internal): codegen related update * chore(internal): codegen related update * release: 0.1.0-alpha.17 --------- Co-authored-by: meorphis <[email protected]> Co-authored-by: meorphis <[email protected]> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent fda3379 commit b3d81f1

Some content is hidden

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

52 files changed

+2301
-3241
lines changed

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
env:
2121
NPM_TOKEN: ${{ secrets.STAINLESS_NPM_TOKEN || secrets.NPM_TOKEN }}
2222
DOCKERHUB_TOKEN: ${{ secrets.STAINLESS_DOCKERHUB_TOKEN || secrets.DOCKERHUB_TOKEN }}
23+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ dist
77
dist-deno
88
/*.tgz
99
.idea/
10+
.eslintcache
1011
dist-bundle
1112
*.mcpb

.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.16"
2+
".": "0.1.0-alpha.17"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-5c1008fd27f64bcde1a146a4158f1c3113b4e13437a4d880bd6811fb063cfcd6.yml
3-
openapi_spec_hash: 9583f62164b5dc15b10051dad6a7fca4
4-
config_hash: e895f7992a607a15865ed026cbe5470d
1+
configured_endpoints: 20
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-ec93b81b2d599edd19449bae3cb40bdb17890908d97cc867e36425a45e491c16.yml
3+
openapi_spec_hash: fe8b8fd7782670698fecfe2fcc05f693
4+
config_hash: 8563083ae1fa5c137476fb1237aa8ea9

CHANGELOG.md

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

3+
## 0.1.0-alpha.17 (2025-12-05)
4+
5+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
6+
7+
### Features
8+
9+
* **api:** add branch reset functionality ([3a752b1](https://github.com/stainless-api/stainless-api-typescript/commit/3a752b1115b7eb1aac880d57de764b9d47dc8a62))
10+
* Expose connection-specific decorated OAS ([f5bf0d1](https://github.com/stainless-api/stainless-api-typescript/commit/f5bf0d19f2aa16e2725268f09723437707eaa398))
11+
* **mcp:** add detail field to docs search tool ([f0d8510](https://github.com/stainless-api/stainless-api-typescript/commit/f0d85109204bf0b13f2b4a44808899776a238c23))
12+
* **mcp:** enable optional code execution tool on http mcp servers ([4672381](https://github.com/stainless-api/stainless-api-typescript/commit/46723815835990f657488a48c95e57450fbd6956))
13+
14+
15+
### Bug Fixes
16+
17+
* **mcpb:** pin @anthropic-ai/mcpb version ([6128a17](https://github.com/stainless-api/stainless-api-typescript/commit/6128a17ea4d7769d69d32776e971841d88c8b6b2))
18+
* **mcp:** fix cli argument parsing logic ([6f51296](https://github.com/stainless-api/stainless-api-typescript/commit/6f5129610f26504aa48d94375dbff726406aef51))
19+
* **mcp:** resolve a linting issue in server code ([3695b9c](https://github.com/stainless-api/stainless-api-typescript/commit/3695b9cf8da2c80a10e0164ea689cee3e8e05b4d))
20+
* **mcp:** return tool execution error on jq failure ([9e8d18a](https://github.com/stainless-api/stainless-api-typescript/commit/9e8d18a678b57187bfc5944b247abdcd1c4c2245))
21+
22+
23+
### Chores
24+
25+
* extract some types in mcp docs ([6953e19](https://github.com/stainless-api/stainless-api-typescript/commit/6953e19081e6fd162450cb352745829803870036))
26+
* fix dockerfile ([a8620b9](https://github.com/stainless-api/stainless-api-typescript/commit/a8620b9e901e80a509217c0afdcfde3ca7db2594))
27+
* **internal:** codegen related update ([b78189c](https://github.com/stainless-api/stainless-api-typescript/commit/b78189ce59ff0aebf3cb92ad5b63d6dccd8bc01b))
28+
* **internal:** codegen related update ([43e2bd2](https://github.com/stainless-api/stainless-api-typescript/commit/43e2bd2e355038dd86b7c5ed5d76a64842a0f62e))
29+
* **internal:** codegen related update ([8bd5749](https://github.com/stainless-api/stainless-api-typescript/commit/8bd5749a8bbff1886c393c26523f191852d38048))
30+
* **internal:** codegen related update ([f5c0a4d](https://github.com/stainless-api/stainless-api-typescript/commit/f5c0a4d3c7a8d6f2ecee1cfe6a49b6d7207e2698))
31+
* **internal:** codegen related update ([6de1b6d](https://github.com/stainless-api/stainless-api-typescript/commit/6de1b6d21a332a82139fc62a09a339cc3e2deb34))
32+
* **internal:** codegen related update ([3dac6b5](https://github.com/stainless-api/stainless-api-typescript/commit/3dac6b5b9b954b7342a59da26bc3e0c7ac939a0e))
33+
* **internal:** codegen related update ([11cb6bd](https://github.com/stainless-api/stainless-api-typescript/commit/11cb6bd7fa124295e059111bab3f8c31a821fc73))
34+
* **internal:** codegen related update ([8d5c4c8](https://github.com/stainless-api/stainless-api-typescript/commit/8d5c4c8a196d731f6794b4d94a0eb844adecd395))
35+
* **internal:** codegen related update ([31e06ee](https://github.com/stainless-api/stainless-api-typescript/commit/31e06eeef3fe4c186ce2f9b84ae125fff6a2d16a))
36+
* **internal:** codegen related update ([692e4f4](https://github.com/stainless-api/stainless-api-typescript/commit/692e4f42982d3eedb78719ea10a44474756f7d5e))
37+
* **internal:** codegen related update ([c9bda4f](https://github.com/stainless-api/stainless-api-typescript/commit/c9bda4fc8d89ea78eb94ef8f8a759aa8c4ea1988))
38+
* **internal:** codegen related update ([be77a0b](https://github.com/stainless-api/stainless-api-typescript/commit/be77a0b78be435dee9aa3093d0fef7b023fac3c4))
39+
* **internal:** codegen related update ([72f8a2a](https://github.com/stainless-api/stainless-api-typescript/commit/72f8a2ab5ea125c3731fe33c73b18b3875184c7f))
40+
* **internal:** codegen related update ([31e3903](https://github.com/stainless-api/stainless-api-typescript/commit/31e390345ee472e95a30bc6c95d261499419772c))
41+
* **internal:** codegen related update ([ac32221](https://github.com/stainless-api/stainless-api-typescript/commit/ac322213ce1d438055c5b15834cceb36634155ab))
42+
* **internal:** codegen related update ([d8d72b0](https://github.com/stainless-api/stainless-api-typescript/commit/d8d72b0c940d6f71d93a93e657226cc49ac7e65b))
43+
* **internal:** codegen related update ([8be59d8](https://github.com/stainless-api/stainless-api-typescript/commit/8be59d8d750c483fcf89e09f8c115ce55b3c7e04))
44+
* **internal:** codegen related update ([0f35c17](https://github.com/stainless-api/stainless-api-typescript/commit/0f35c1778e16bc0f8c6542624d6325f34305d758))
45+
* **internal:** codegen related update ([a4f392b](https://github.com/stainless-api/stainless-api-typescript/commit/a4f392b24af3b8edd027a2519cbc79ac362669b0))
46+
* **internal:** codegen related update ([4aab75e](https://github.com/stainless-api/stainless-api-typescript/commit/4aab75e95c6be99f8340a16d0e415615db4bded8))
47+
* **internal:** fix incremental formatting in some cases ([5906dba](https://github.com/stainless-api/stainless-api-typescript/commit/5906dba834a1abec5399fd3cd27459b213a5d301))
48+
* **internal:** grammar fix (it's -&gt; its) ([26f73e0](https://github.com/stainless-api/stainless-api-typescript/commit/26f73e01ba9f1e7a827ea482adb6654b8c98714c))
49+
* **internal:** ignore .eslintcache ([c1fe619](https://github.com/stainless-api/stainless-api-typescript/commit/c1fe61994b503fbd898b01feda816845436045a6))
50+
* **internal:** remove .eslintcache ([80c9762](https://github.com/stainless-api/stainless-api-typescript/commit/80c9762d8834f3fd1ad9ec8a4f8639a6732c8c43))
51+
* **internal:** use npm pack for build uploads ([64381d5](https://github.com/stainless-api/stainless-api-typescript/commit/64381d5bda0c0469711d936b76bf728965b6c5de))
52+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([d443db2](https://github.com/stainless-api/stainless-api-typescript/commit/d443db20c8a895993c651a0d8681f526f970e028))
53+
* mcp code tool explicit error message when missing a run function ([15e25b5](https://github.com/stainless-api/stainless-api-typescript/commit/15e25b504f097d09eadf6ba2a2587dbec407182a))
54+
* **mcp:** add friendlier MCP code tool errors on incorrect method invocations ([41d7085](https://github.com/stainless-api/stainless-api-typescript/commit/41d708546062afff0b5be01a91f3e4b7f148e589))
55+
* **mcp:** add line numbers to code tool errors ([f251424](https://github.com/stainless-api/stainless-api-typescript/commit/f2514246e9ed694632eb18b67ffe90730948353e))
56+
* **mcp:** allow pointing `docs_search` tool at other URLs ([b8df387](https://github.com/stainless-api/stainless-api-typescript/commit/b8df387d55a125f19cc419605b349c910c8373fe))
57+
* **mcp:** clarify http auth error ([ffad929](https://github.com/stainless-api/stainless-api-typescript/commit/ffad92904ee9cb02d76603d8719529f362f83228))
58+
* **mcp:** upgrade jq-web ([13aabb5](https://github.com/stainless-api/stainless-api-typescript/commit/13aabb59fcdecbf26ed86410a7d5258571bfa9c1))
59+
* skip spec resource ([ae12574](https://github.com/stainless-api/stainless-api-typescript/commit/ae125747405747c52061a7eb1c1f42df980eda2b))
60+
* update docstrings ([c4f88d9](https://github.com/stainless-api/stainless-api-typescript/commit/c4f88d941696d5f25dd449c33ffe71a46f9a2b2a))
61+
* update lockfile ([3972fce](https://github.com/stainless-api/stainless-api-typescript/commit/3972fce8d4d77f2cc734c3bc6e8812d1941d41ce))
62+
* update mcp dockerfile ([d531f3f](https://github.com/stainless-api/stainless-api-typescript/commit/d531f3f03874c84bba354b3a1a2a210946b0658c))
63+
* use structured error when code execution tool errors ([4b5b5ea](https://github.com/stainless-api/stainless-api-typescript/commit/4b5b5ea49614cdaea1a65680c2235827f775490e))
64+
65+
66+
### Documentation
67+
68+
* **mcp:** add a README button for one-click add to Cursor ([266a273](https://github.com/stainless-api/stainless-api-typescript/commit/266a2739341ece77d84c2ff128c9b2aa5d65add7))
69+
* **mcp:** add a README link to add server to VS Code or Claude Code ([25ed318](https://github.com/stainless-api/stainless-api-typescript/commit/25ed318337f817f1e12b4d8f6760ef76d74dcb4b))
70+
371
## 0.1.0-alpha.16 (2025-09-26)
472

573
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/stainless-api/stainless-api-typescript/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Methods:
3434
- <code title="get /v0/projects/{project}/branches">client.projects.branches.<a href="./src/resources/projects/branches.ts">list</a>({ ...params }) -> BranchListResponsesPage</code>
3535
- <code title="delete /v0/projects/{project}/branches/{branch}">client.projects.branches.<a href="./src/resources/projects/branches.ts">delete</a>(branch, { ...params }) -> unknown</code>
3636
- <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>
37+
- <code title="put /v0/projects/{project}/branches/{branch}/reset">client.projects.branches.<a href="./src/resources/projects/branches.ts">reset</a>(branch, { ...params }) -> ProjectBranch</code>
3738

3839
## Configs
3940

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stainless-api/sdk",
3-
"version": "0.1.0-alpha.16",
3+
"version": "0.1.0-alpha.17",
44
"description": "The official TypeScript library for the Stainless API",
55
"author": "Stainless <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -35,7 +35,7 @@
3535
"@types/node": "^20.17.6",
3636
"@typescript-eslint/eslint-plugin": "8.31.1",
3737
"@typescript-eslint/parser": "8.31.1",
38-
"eslint": "^9.20.1",
38+
"eslint": "^9.39.1",
3939
"eslint-plugin-prettier": "^5.4.1",
4040
"eslint-plugin-unused-imports": "^4.1.4",
4141
"iconv-lite": "^0.6.3",

packages/mcp-server/Dockerfile

Lines changed: 66 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,81 @@
1-
# Build stage
2-
FROM node:20-alpine AS builder
1+
# Dockerfile for Stainless MCP Server
2+
#
3+
# This Dockerfile builds a Docker image for the MCP Server.
4+
#
5+
# To build the image locally:
6+
# docker build -f packages/mcp-server/Dockerfile -t stainlessapi/stainless-mcp:local .
7+
#
8+
# To run the image:
9+
# docker run -i stainlessapi/stainless-mcp:local [OPTIONS]
10+
#
11+
# Common options:
12+
# --tool=<name> Include specific tools
13+
# --resource=<name> Include tools for specific resources
14+
# --operation=read|write Filter by operation type
15+
# --client=<type> Set client compatibility (e.g., claude, cursor)
16+
# --transport=<type> Set transport type (stdio or http)
17+
#
18+
# For a full list of options:
19+
# docker run -i stainlessapi/stainless-mcp:local --help
20+
#
21+
# Note: The MCP server uses stdio transport by default. Docker's -i flag
22+
# enables interactive mode, allowing the container to communicate over stdin/stdout.
323

4-
# Install bash for build script
5-
RUN apk add --no-cache bash openssl
24+
# Build stage
25+
FROM node:20-alpine AS builder
626

7-
# Set working directory
8-
WORKDIR /build
27+
# Enable corepack to use pnpm
28+
RUN corepack enable && corepack prepare pnpm@latest --activate
929

10-
# Copy entire repository
11-
COPY . .
30+
# Install bash for build script
31+
RUN apk add --no-cache bash openssl
1232

13-
# Install all dependencies and build everything
14-
RUN pnpm install --frozen-lockfile && \
15-
pnpm build
33+
# Set working directory
34+
WORKDIR /build
1635

17-
# Production stage
18-
FROM node:20-alpine
36+
# Copy entire repository
37+
COPY . .
1938

20-
# Add non-root user
21-
RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
39+
# Install all dependencies and build everything
40+
RUN pnpm install --frozen-lockfile && \
41+
pnpm build
2242

23-
# Set working directory
24-
WORKDIR /app
43+
# Production stage
2544

26-
# Copy the built mcp-server dist directory
27-
COPY --from=builder /build/packages/mcp-server/dist ./
45+
FROM denoland/deno:alpine
46+
RUN apk add --no-cache npm
2847

29-
# Copy node_modules from mcp-server (includes all production deps)
30-
COPY --from=builder /build/packages/mcp-server/node_modules ./node_modules
48+
# Add non-root user
49+
RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
3150

32-
# Copy the built @stainless-api/sdk into node_modules
33-
COPY --from=builder /build/dist ./node_modules/@stainless-api/sdk
51+
# Set working directory
52+
WORKDIR /app
3453

35-
# Change ownership to nodejs user
36-
RUN chown -R nodejs:nodejs /app
54+
# Copy the built mcp-server preserving directory structure
55+
COPY --from=builder /build/packages/mcp-server/dist ./packages/mcp-server/dist
56+
COPY --from=builder /build/packages/mcp-server/node_modules ./packages/mcp-server/node_modules
3757

38-
# Switch to non-root user
39-
USER nodejs
58+
# Copy node_modules from root (pnpm hoists dependencies here)
59+
COPY --from=builder /build/node_modules ./node_modules
4060

41-
# The MCP server uses stdio transport by default
42-
# No exposed ports needed for stdio communication
61+
# Copy the built @stainless-api/sdk into node_modules
62+
COPY --from=builder /build/dist ./node_modules/@stainless-api/sdk
4363

44-
# Set the entrypoint to the MCP server
45-
ENTRYPOINT ["node", "index.js"]
64+
# Change ownership to nodejs user
65+
RUN chown -R nodejs:nodejs /app
4666

47-
# Allow passing arguments to the MCP server
48-
CMD []
67+
# Switch to non-root user
68+
USER nodejs
69+
70+
# The MCP server uses stdio transport by default
71+
# No exposed ports needed for stdio communication
72+
73+
# This is needed for node to run on the deno:alpine image.
74+
# See <https://github.com/denoland/deno_docker/issues/373>.
75+
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
76+
77+
# Set the entrypoint to the MCP server
78+
ENTRYPOINT ["node", "packages/mcp-server/dist/index.js"]
79+
80+
# Allow passing arguments to the MCP server
81+
CMD []

packages/mcp-server/README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,36 @@ For clients with a configuration JSON, it might look something like this:
4949
}
5050
```
5151

52+
### Cursor
53+
54+
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
55+
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
56+
57+
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=@stainless-api/sdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzdGFpbmxlc3MtYXBpL3Nkay1tY3AiXSwiZW52Ijp7IlNUQUlOTEVTU19BUElfS0VZIjoiU2V0IHlvdXIgU1RBSU5MRVNTX0FQSV9LRVkgaGVyZS4iLCJTVEFJTkxFU1NfUFJPSkVDVCI6IlNldCB5b3VyIFNUQUlOTEVTU19QUk9KRUNUIGhlcmUuIn19)
58+
59+
### VS Code
60+
61+
If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables
62+
in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration.
63+
64+
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40stainless-api%2Fsdk-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40stainless-api%2Fsdk-mcp%22%5D%2C%22env%22%3A%7B%22STAINLESS_API_KEY%22%3A%22Set%20your%20STAINLESS_API_KEY%20here.%22%2C%22STAINLESS_PROJECT%22%3A%22Set%20your%20STAINLESS_PROJECT%20here.%22%7D%7D)
65+
66+
### Claude Code
67+
68+
If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your
69+
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
70+
71+
```
72+
claude mcp add --transport stdio stainless_api_sdk_api --env STAINLESS_API_KEY="Your STAINLESS_API_KEY here." STAINLESS_PROJECT="Your STAINLESS_PROJECT here." -- npx -y @stainless-api/sdk-mcp
73+
```
74+
5275
## Exposing endpoints to your MCP Client
5376

54-
There are two ways to expose endpoints as tools in the MCP server:
77+
There are three ways to expose endpoints as tools in the MCP server:
5578

5679
1. Exposing one tool per endpoint, and filtering as necessary
5780
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
81+
3. Exposing a docs search tool and a code execution tool, allowing the client to write code to be executed against the TypeScript client
5882

5983
### Filtering endpoints and tools
6084

@@ -89,6 +113,18 @@ All of these command-line options can be repeated, combined together, and have c
89113

90114
Use `--list` to see the list of available tools, or see below.
91115

116+
### Code execution
117+
118+
If you specify `--tools=code` to the MCP server, it will expose just two tools:
119+
120+
- `search_docs` - Searches the API documentation and returns a list of markdown results
121+
- `execute` - Runs code against the TypeScript client
122+
123+
This allows the LLM to implement more complex logic by chaining together many API calls without loading
124+
intermediary results into its context window.
125+
126+
The code execution itself happens in a Deno sandbox that has network access only to the base URL for the API.
127+
92128
### Specifying the MCP Client
93129

94130
Different clients have varying abilities to handle arbitrary tools and schemas.
@@ -242,6 +278,11 @@ The following tools are available in this MCP server.
242278
The branch is rebased onto the `base` branch or commit SHA, inheriting
243279
any config and custom code changes.
244280

281+
- `reset_projects_branches` (`write`): Reset a project branch.
282+
283+
If `branch` === `main`, the branch is reset to `target_config_sha`. Otherwise, the
284+
branch is reset to `main`.
285+
245286
### Resource `projects.configs`:
246287

247288
- `retrieve_projects_configs` (`read`):

packages/mcp-server/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stainless-api/sdk-mcp",
3-
"version": "0.1.0-alpha.16",
3+
"version": "0.1.0-alpha.17",
44
"description": "The official MCP Server for the Stainless API",
55
"author": "Stainless <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -31,12 +31,14 @@
3131
"dependencies": {
3232
"@stainless-api/sdk": "workspace:*",
3333
"@cloudflare/cabidela": "^0.2.4",
34-
"@modelcontextprotocol/sdk": "^1.11.5",
34+
"@modelcontextprotocol/sdk": "^1.24.0",
3535
"@valtown/deno-http-worker": "^0.0.21",
3636
"cors": "^2.8.5",
3737
"express": "^5.1.0",
38-
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.6/jq-web.tar.gz",
38+
"fuse.js": "^7.1.0",
39+
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
3940
"qs": "^6.14.0",
41+
"typescript": "5.8.3",
4042
"yargs": "^17.7.2",
4143
"zod": "^3.25.20",
4244
"zod-to-json-schema": "^3.24.5",
@@ -46,7 +48,7 @@
4648
"mcp-server": "dist/index.js"
4749
},
4850
"devDependencies": {
49-
"@anthropic-ai/mcpb": "^1.1.0",
51+
"@anthropic-ai/mcpb": "1.1.0",
5052
"@types/cors": "^2.8.19",
5153
"@types/express": "^5.0.3",
5254
"@types/jest": "^29.4.0",
@@ -63,8 +65,7 @@
6365
"ts-morph": "^19.0.0",
6466
"ts-node": "^10.5.0",
6567
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
66-
"tsconfig-paths": "^4.0.0",
67-
"typescript": "5.8.3"
68+
"tsconfig-paths": "^4.0.0"
6869
},
6970
"imports": {
7071
"@stainless-api/sdk-mcp": ".",

0 commit comments

Comments
 (0)