Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
be36e15
feat(mcp): add logging when environment variable is set
stainless-app[bot] Aug 2, 2025
e98a089
feat(mcp): remote server with passthru auth
stainless-app[bot] Aug 5, 2025
c0d1022
fix(mcp): fix bug in header handling
stainless-app[bot] Aug 6, 2025
e9e8777
chore(internal): move publish config
stainless-app[bot] Aug 7, 2025
00cb972
chore(mcp): refactor streamable http transport
stainless-app[bot] Aug 7, 2025
e2fdc8b
feat(mcp): add unix socket option for remote MCP
stainless-app[bot] Aug 7, 2025
3237c3b
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 9, 2025
dae9b0f
chore(internal): update comment in script
stainless-app[bot] Aug 9, 2025
b09d85c
chore(internal): codegen related update
stainless-app[bot] Aug 12, 2025
dc011fe
chore(mcp): minor cleanup of types and package.json
stainless-app[bot] Aug 14, 2025
12bd79f
fix(mcp): generate additionalProperties=true for map schemas to avoid…
stainless-app[bot] Aug 15, 2025
0b818f2
chore(mcp): document remote server in README.md
stainless-app[bot] Aug 15, 2025
c62fad2
chore(deps): update dependency node-fetch to v2.6.13
stainless-app[bot] Aug 16, 2025
0d69b8d
chore(mcp): update README
stainless-app[bot] Aug 16, 2025
12fb0e6
chore(internal): formatting change
stainless-app[bot] Aug 16, 2025
ca31e54
feat(mcp): parse query string as mcp client options in mcp server
stainless-app[bot] Aug 19, 2025
fd2fa21
chore(internal): refactor array check
stainless-app[bot] Aug 19, 2025
cc312bc
chore(mcp): add cors to oauth metadata route
stainless-app[bot] Aug 20, 2025
1e00ca0
feat(mcp): add code execution tool
stainless-app[bot] Aug 20, 2025
a80dd72
chore(internal): make mcp-server publishing public by defaut
stainless-app[bot] Aug 21, 2025
2d55b8d
feat(mcp): add option to infer mcp client
stainless-app[bot] Aug 21, 2025
0d2ee4b
chore(mcp): update package.json
stainless-app[bot] Aug 22, 2025
6b6f77c
chore(mcp): update types
stainless-app[bot] Aug 22, 2025
eb0d865
chore: update CI script
stainless-app[bot] Aug 23, 2025
1ce88f0
feat(mcp): change remote server query option parsing logic
stainless-app[bot] Aug 23, 2025
3ea626e
feat(mcp): add client infer to cloudflare oauth screen
stainless-app[bot] Aug 27, 2025
c79c312
feat(mcp): expose client options in `streamableHTTPApp`
stainless-app[bot] Sep 3, 2025
f9801ac
chore(internal): codegen related update
stainless-app[bot] Sep 3, 2025
92e01a7
feat(mcp): allow setting logging level
stainless-app[bot] Sep 3, 2025
1bb1db5
feat(mcp): add mcp bundles to build script
stainless-app[bot] Sep 5, 2025
cf90b27
chore(internal): codegen related update
stainless-app[bot] Sep 5, 2025
82be9a4
chore: ci build action
stainless-app[bot] Sep 6, 2025
1fa531c
fix(mcp): fix query options parsing
stainless-app[bot] Sep 6, 2025
53404bd
feat(api): api update
stainless-app[bot] Sep 6, 2025
3d6056f
fix: coerce nullable values to undefined
stainless-app[bot] Sep 9, 2025
8565331
chore(mcp): upload dxt as release asset
stainless-app[bot] Sep 10, 2025
7854bfd
fix(mcp): fix uploading dxt release assets
stainless-app[bot] Sep 12, 2025
ce6f62c
fix(ci): set permissions for DXT publish action
stainless-app[bot] Sep 17, 2025
551b096
chore(mcp): rename dxt to mcpb
stainless-app[bot] Sep 18, 2025
1379dad
chore(internal): gitignore .mcpb files
stainless-app[bot] Sep 19, 2025
269087f
feat(mcp): add docs search tool
stainless-app[bot] Sep 19, 2025
a7f4ec9
chore(codegen): internal codegen update
stainless-app[bot] Sep 19, 2025
f9d4d09
feat(api): api update
stainless-app[bot] Sep 19, 2025
ad1dec4
chore: do not install brew dependencies in ./scripts/bootstrap by def…
stainless-app[bot] Sep 20, 2025
c09861a
feat(mcp): enable experimental docs search tool
stainless-app[bot] Sep 23, 2025
7ec226e
feat(mcp): add option for including docs tools
stainless-app[bot] Sep 24, 2025
fbb1589
perf: faster formatting
stainless-app[bot] Sep 26, 2025
1174a7f
chore(internal): remove deprecated `compilerOptions.baseUrl` from tsc…
stainless-app[bot] Sep 26, 2025
9db3270
chore(internal): fix incremental formatting in some cases
stainless-app[bot] Sep 27, 2025
29f1271
chore(mcp): allow pointing `docs_search` tool at other URLs
stainless-app[bot] Sep 27, 2025
afd9e2f
chore(internal): codegen related update
stainless-app[bot] Sep 27, 2025
19aa6c1
chore(internal): ignore .eslintcache
stainless-app[bot] Sep 27, 2025
e0d84e5
fix(mcp): fix cli argument parsing logic
stainless-app[bot] Sep 30, 2025
e866428
fix(mcp): resolve a linting issue in server code
stainless-app[bot] Sep 30, 2025
1fb9f41
chore: update lockfile
stainless-app[bot] Sep 30, 2025
0a2fdd6
chore(internal): remove .eslintcache
stainless-app[bot] Oct 3, 2025
f5f76e7
feat(api): api update
stainless-app[bot] Oct 3, 2025
5c45d4c
chore(internal): use npm pack for build uploads
stainless-app[bot] Oct 7, 2025
438f807
chore: extract some types in mcp docs
stainless-app[bot] Oct 9, 2025
0602cc7
feat(api): api update
stainless-app[bot] Oct 16, 2025
87e78b8
fix(client): incorrect offset pagination check
stainless-app[bot] Oct 21, 2025
b0f97cf
fix(mcp): fix some response schemas used for jq filtering
stainless-app[bot] Oct 24, 2025
e2809b3
fix(mcpb): pin @anthropic-ai/mcpb version
stainless-app[bot] Oct 31, 2025
0683aeb
chore(internal): grammar fix (it's -> its)
stainless-app[bot] Nov 4, 2025
db94eb7
chore: use structured error when code execution tool errors
stainless-app[bot] Nov 4, 2025
bc1b68e
chore: mcp code tool explicit error message when missing a run function
stainless-app[bot] Nov 5, 2025
5aa88d4
feat(mcp): enable optional code execution tool on http mcp servers
stainless-app[bot] Nov 5, 2025
3341c0e
chore(mcp): add friendlier MCP code tool errors on incorrect method i…
stainless-app[bot] Nov 6, 2025
70bf6d0
chore(mcp): add line numbers to code tool errors
stainless-app[bot] Nov 6, 2025
e925a0f
docs(mcp): add a README button for one-click add to Cursor
stainless-app[bot] Nov 6, 2025
14f1d5a
chore(internal): codegen related update
stainless-app[bot] Nov 6, 2025
72a04d7
docs(mcp): add a README link to add server to VS Code or Claude Code
stainless-app[bot] Nov 7, 2025
6fd386f
chore(internal): codegen related update
stainless-app[bot] Nov 8, 2025
b8623e9
chore(mcp): clarify http auth error
stainless-app[bot] Nov 11, 2025
c717c94
fix(mcp): return tool execution error on jq failure
stainless-app[bot] Nov 13, 2025
62ddb5b
chore(mcp): upgrade jq-web
stainless-app[bot] Nov 13, 2025
122e298
feat(mcp): add detail field to docs search tool
stainless-app[bot] Nov 26, 2025
48209fc
fix(mcp): return tool execution error on api error
stainless-app[bot] Dec 2, 2025
67c1ed9
feat(mcp): return logs on code tool errors
stainless-app[bot] Dec 2, 2025
4832ece
chore: use latest @modelcontextprotocol/sdk
stainless-app[bot] Dec 5, 2025
01c6570
feat(mcp): add typescript check to code execution tool
stainless-app[bot] Dec 5, 2025
e4ad4ae
feat(mcp): handle code mode calls in the Stainless API
stainless-app[bot] Dec 6, 2025
4d8eb4c
fix(mcp): return correct lines on typescript errors
stainless-app[bot] Dec 6, 2025
7fb00f0
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
b19afe0
fix(mcp): correct code tool API endpoint
stainless-app[bot] Dec 6, 2025
47bcda4
chore(internal): codegen related update
stainless-app[bot] Dec 6, 2025
adb99b7
fix(mcp): add client instantiation options to code tool
stainless-app[bot] Dec 11, 2025
5b0ef90
chore(mcp): update lockfile
stainless-app[bot] Dec 11, 2025
9650d43
fix(mcp): pass base url to code tool
stainless-app[bot] Dec 18, 2025
b4e317d
chore(mcp)!: remove deprecated tool schemes
stainless-app[bot] Dec 19, 2025
5783182
chore(internal): codegen related update
stainless-app[bot] Jan 6, 2026
a473911
docs: prominently feature MCP server setup in root SDK readmes
stainless-app[bot] Jan 6, 2026
4f83af8
fix(mcp): correct code tool api output types
stainless-app[bot] Jan 6, 2026
04faac6
fix(mcp): update cloudflare worker host page
stainless-app[bot] Jan 7, 2026
a60ce49
chore: break long lines in snippets into multiline
stainless-app[bot] Jan 7, 2026
23285ec
fix(mcp): fix options parsing
stainless-app[bot] Jan 7, 2026
a985915
fix(mcp): fix env parsing
stainless-app[bot] Jan 8, 2026
e93faff
fix(mcp): update code tool prompt
stainless-app[bot] Jan 9, 2026
1e6655c
chore(internal): codegen related update
stainless-app[bot] Jan 12, 2026
4d9100f
chore(internal): codegen related update
stainless-app[bot] Jan 12, 2026
3df78ae
chore(internal): codegen related update
stainless-app[bot] Jan 13, 2026
8b8ceaf
chore(internal): codegen related update
stainless-app[bot] Jan 13, 2026
6cee00e
chore: fix typo in descriptions
stainless-app[bot] Jan 14, 2026
4977c78
chore(mcp): upgrade dependencies
stainless-app[bot] Jan 15, 2026
d460803
chore(mcp): add intent param to execute tool
stainless-app[bot] Jan 15, 2026
0b69eda
chore(mcp): pass intent param to execute handler
stainless-app[bot] Jan 15, 2026
650313f
chore(internal): bump MCP dependencies
stainless-app[bot] Jan 15, 2026
5e48026
chore(internal): upgrade babel, qs, js-yaml
stainless-app[bot] Jan 15, 2026
54f6539
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 17, 2026
0b334db
chore(internal): codegen related update
stainless-app[bot] Jan 24, 2026
53d6cd1
chore(ci): upgrade `actions/github-script`
stainless-app[bot] Jan 24, 2026
0612bd5
chore(internal): codegen related update
stainless-app[bot] Jan 28, 2026
b593ded
fix(mcp): allow falling back for required env variables
stainless-app[bot] Jan 28, 2026
b1dac50
chore(internal): upgrade wrangler version
stainless-app[bot] Jan 28, 2026
05daa38
fix(docs): fix mcp installation instructions for remote servers
stainless-app[bot] Jan 29, 2026
9efac91
chore(mcp): up tsconfig lib version to es2022
stainless-app[bot] Jan 29, 2026
b60cead
fix(mcp): do not fallback on baseUrl if environment env variable is set
stainless-app[bot] Jan 31, 2026
093077c
chore(client): do not parse responses with empty content-length
stainless-app[bot] Feb 3, 2026
9b420b6
chore(internal): support oauth authorization code flow for MCP servers
stainless-app[bot] Feb 3, 2026
108db42
chore(internal): refactor flag parsing for MCP servers and add debug …
stainless-app[bot] Feb 5, 2026
f0ae533
feat(mcp): add initial server instructions
stainless-app[bot] Feb 5, 2026
bbc38ee
chore(internal): add health check to MCP server when running in HTTP …
stainless-app[bot] Feb 7, 2026
c2c19a7
chore(internal): upgrade hono
stainless-app[bot] Feb 7, 2026
f7edfed
chore(internal): always generate MCP server dockerfiles and upgrade a…
stainless-app[bot] Feb 10, 2026
bb39c62
chore(internal): allow basic filtering of methods allowed for MCP cod…
stainless-app[bot] Feb 10, 2026
61599b5
chore(mcp): forward STAINLESS_API_KEY to docs search endpoint
stainless-app[bot] Feb 14, 2026
5dbe7e6
chore(internal): improve layout of generated MCP server files
stainless-app[bot] Feb 14, 2026
be6c595
chore(internal): allow setting x-stainless-api-key header on mcp serv…
stainless-app[bot] Feb 18, 2026
7019a7f
chore(internal): cache fetch instruction calls in MCP server
stainless-app[bot] Feb 19, 2026
011fc93
fix(mcp): initialize SDK lazily to avoid failing the connection on in…
stainless-app[bot] Feb 20, 2026
ef69c2e
chore: update mock server docs
stainless-app[bot] Feb 20, 2026
a4bb9b3
chore(mcp): correctly update version in sync with sdk
stainless-app[bot] Feb 20, 2026
16a7ae1
chore(internal): update agents version
stainless-app[bot] Feb 24, 2026
f8fe092
fix(docs/contributing): correct pnpm link command
stainless-app[bot] Feb 24, 2026
e671738
chore(internal): upgrade @modelcontextprotocol/sdk and hono
stainless-app[bot] Feb 24, 2026
af60a89
chore(internal): codegen related update
stainless-app[bot] Feb 25, 2026
04819f0
chore(internal): make MCP code execution location configurable via a …
stainless-app[bot] Feb 25, 2026
6f70f99
chore(internal): fix MCP Dockerfiles so they can be built without bui…
stainless-app[bot] Feb 26, 2026
08a9df6
chore(internal): fix MCP Dockerfiles so they can be built without bui…
stainless-app[bot] Feb 26, 2026
cad2b7b
chore(internal): move stringifyQuery implementation to internal function
stainless-app[bot] Feb 27, 2026
2219842
feat(mcp): add an option to disable code tool
stainless-app[bot] Feb 27, 2026
8a606fa
fix(mcp): update prompt
stainless-app[bot] Feb 27, 2026
ce94b68
chore(internal): codegen related update
stainless-app[bot] Mar 4, 2026
f8a6c88
chore(mcp-server): return access instructions for 404 without API key
stainless-app[bot] Mar 4, 2026
ba5d919
chore(internal): use x-stainless-mcp-client-envs header for MCP remot…
stainless-app[bot] Mar 5, 2026
f9228eb
chore(internal): codegen related update
stainless-app[bot] Mar 7, 2026
92d3dfe
chore(test): do not count install time for mock server timeout
stainless-app[bot] Mar 7, 2026
a8f6594
chore(ci): skip uploading artifacts on stainless-internal branches
stainless-app[bot] Mar 8, 2026
68777a4
fix(client): preserve URL params already embedded in path
stainless-app[bot] Mar 8, 2026
07cd946
chore(mcp-server): improve instructions
stainless-app[bot] Mar 8, 2026
f1c4c46
chore(internal): update dependencies to address dependabot vulnerabil…
stainless-app[bot] Mar 10, 2026
3ffe8a3
chore(internal): bump @modelcontextprotocol/sdk, @hono/node-server, a…
stainless-app[bot] Mar 12, 2026
dd98637
chore: use proper capitalization for WebSockets
stainless-app[bot] Mar 12, 2026
b96aed5
chore(internal): make generated MCP servers compatible with Cloudflar…
stainless-app[bot] Mar 14, 2026
308a359
chore(internal): support x-stainless-mcp-client-envs header in MCP se…
stainless-app[bot] Mar 14, 2026
b4dec8a
chore(internal): tweak CI branches
stainless-app[bot] Mar 17, 2026
6500bef
chore(internal): support x-stainless-mcp-client-permissions headers i…
stainless-app[bot] Mar 17, 2026
ecea3ce
refactor(tests): switch from prism to steady
stainless-app[bot] Mar 20, 2026
6b489ac
chore(tests): bump steady to v0.19.4
stainless-app[bot] Mar 21, 2026
c586f1c
chore(tests): bump steady to v0.19.5
stainless-app[bot] Mar 21, 2026
a2b641d
chore(internal): update gitignore
stainless-app[bot] Mar 24, 2026
b837153
chore(internal): fix MCP server TS errors that occur with required cl…
stainless-app[bot] Mar 24, 2026
cea3a42
chore(tests): bump steady to v0.19.6
stainless-app[bot] Mar 24, 2026
e202d8f
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 25, 2026
d1b6fb6
chore(tests): bump steady to v0.19.7
stainless-app[bot] Mar 25, 2026
4e43395
fix(mcp): bump agents version in cloudflare worker MCP servers
stainless-app[bot] Mar 27, 2026
c000412
chore(internal): update multipart form array serialization
stainless-app[bot] Mar 27, 2026
df1f35d
chore(internal): support custom-instructions-path flag in MCP servers
stainless-app[bot] Mar 27, 2026
ad564a7
chore(internal): support local docs search in MCP servers
stainless-app[bot] Mar 28, 2026
fcfb53d
chore(ci): escape input path in publish-npm workflow
stainless-app[bot] Mar 28, 2026
62a6382
chore(mcp-server): add support for session id, forward client info
stainless-app[bot] Mar 31, 2026
6aa2f3b
chore(internal): improve local docs search for MCP servers
stainless-app[bot] Mar 31, 2026
1b517ca
chore(tests): bump steady to v0.20.1
stainless-app[bot] Apr 1, 2026
4bfc8ce
chore(tests): bump steady to v0.20.2
stainless-app[bot] Apr 1, 2026
d714c04
chore(internal): support type annotations when running MCP in local e…
stainless-app[bot] Apr 2, 2026
5c84254
chore(mcp-server): log client info
stainless-app[bot] Apr 3, 2026
8aee377
chore(internal): use link instead of file in MCP server package.json …
stainless-app[bot] Apr 3, 2026
0a95651
chore(internal): fix MCP docker image builds in yarn projects
stainless-app[bot] Apr 3, 2026
9702a7d
chore(internal): fix MCP server import ordering
stainless-app[bot] Apr 7, 2026
7b291ea
chore(mcp-server): increase local docs search result count from 5 to 10
stainless-app[bot] Apr 9, 2026
5edc9bb
chore(internal): codegen related update
stainless-app[bot] Apr 9, 2026
9c2dff4
chore(internal): show error causes in MCP servers when running in loc…
stainless-app[bot] Apr 10, 2026
8f72b8f
chore(tests): bump steady to v0.22.1
stainless-app[bot] Apr 18, 2026
c909c52
chore(internal): more robust bootstrap script
stainless-app[bot] Apr 23, 2026
60a04b0
feat: support setting headers via env
stainless-app[bot] Apr 28, 2026
1430c10
codegen metadata
stainless-app[bot] Apr 30, 2026
e9b93cb
codegen metadata
stainless-app[bot] May 1, 2026
30ab041
chore(internal): fix MCP cloudflare worker builds
stainless-app[bot] May 1, 2026
1df92ef
chore(internal): fix MCP cloudflare worker initialization
stainless-app[bot] May 6, 2026
19bb784
ci: pin GitHub Actions to commit SHAs
stainless-app[bot] May 13, 2026
6346bbb
chore(internal): codegen related update
stainless-app[bot] May 19, 2026
9961fe5
chore(internal): codegen related update
stainless-app[bot] May 29, 2026
a6f4e5c
release: 3.0.0
stainless-app[bot] May 29, 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
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode"
]
"extensions": ["esbenp.prettier-vscode"]
}
}
}
59 changes: 59 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Dependencies
node_modules/
**/node_modules/

# Build outputs
dist/
**/dist/

# Git
.git/
.gitignore

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Testing
test/
tests/
__tests__/
*.test.js
*.spec.js
coverage/
.nyc_output/

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Environment
.env
.env.*

# Temporary files
*.tmp
*.temp
.cache/

# Examples and scripts
examples/
bin/

# Other packages (we only need mcp-server)
packages/*/
!packages/mcp-server/
51 changes: 34 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
Expand All @@ -17,12 +19,12 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/julep-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '18'

Expand All @@ -36,15 +38,15 @@ jobs:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/julep-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'

Expand All @@ -55,29 +57,44 @@ jobs:
run: ./scripts/build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/julep-node'
if: |-
github.repository == 'stainless-sdks/julep-node' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v6
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/julep-node'
if: |-
github.repository == 'stainless-sdks/julep-node' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
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/julep-node' &&
!startsWith(github.ref, 'refs/heads/stl/')
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
runs-on: ${{ github.repository == 'stainless-sdks/julep-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'

Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
publish:
name: publish
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '20'

Expand All @@ -31,11 +33,19 @@ jobs:

- name: Publish to NPM
run: |
if [ -n "${{ github.event.inputs.path }}" ]; then
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
if [ -n "$INPUT_PATH" ]; then
PATHS_RELEASED="[\"$INPUT_PATH\"]"
else
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
fi
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
env:
INPUT_PATH: ${{ github.event.inputs.path }}
NPM_TOKEN: ${{ secrets.JULEP_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/julep_sdk_api.mcpb
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'julep-ai/node-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check release environment
run: |
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
node_modules
yarn-error.log
codegen.log
Expand All @@ -7,4 +8,6 @@ dist
dist-deno
/*.tgz
.idea/

.eslintcache
dist-bundle
*.mcpb
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.7.4"
".": "3.0.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 66
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-21c8182519ef811d16673113f293a4b667ccd0176bdf867e8a1701b520d0bce7.yml
openapi_spec_hash: 3a08e0e8f22356dd768b19bd7e0950eb
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash/julep-56c9759b7b3d7b7c409f370aa184f895d50991171153728b5ddb85ef824d82c5.yml
openapi_spec_hash: a3f61930f630788c17daa9ec5be09d0f
config_hash: 5cb77b8389154096b85883a93680f511
Loading
Loading