Skip to content

Commit e29e654

Browse files
release: 8.2.1 (#642)
* chore(mcp): upgrade dependencies * chore(mcp): add intent param to execute tool * chore(mcp): pass intent param to execute handler * chore(internal): upgrade babel, qs, js-yaml * chore(internal): update `actions/checkout` version * chore(internal): codegen related update * chore(internal): codegen related update * release: 8.2.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 0f0579f commit e29e654

14 files changed

Lines changed: 735 additions & 774 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ github.repository == 'stainless-sdks/finch-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2020
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323

2424
- name: Set up Node
2525
uses: actions/setup-node@v4
@@ -41,7 +41,7 @@ jobs:
4141
contents: read
4242
id-token: write
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545

4646
- name: Set up Node
4747
uses: actions/setup-node@v4
@@ -83,7 +83,7 @@ jobs:
8383
runs-on: ${{ github.repository == 'stainless-sdks/finch-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8484
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8585
steps:
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@v6
8787

8888
- name: Set up Node
8989
uses: actions/setup-node@v4

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
contents: write
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424

2525
- name: Set up Node
2626
uses: actions/setup-node@v3

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'Finch-API/finch-api-node' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616

1717
- name: Check release environment
1818
run: |

.release-please-manifest.json

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

CHANGELOG.md

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

3+
## 8.2.1 (2026-01-20)
4+
5+
Full Changelog: [v8.2.0...v8.2.1](https://github.com/Finch-API/finch-api-node/compare/v8.2.0...v8.2.1)
6+
7+
### Chores
8+
9+
* **internal:** codegen related update ([b715dbe](https://github.com/Finch-API/finch-api-node/commit/b715dbe99f403407e6e3fe6f24fcfcd5b479992a))
10+
* **internal:** codegen related update ([55dcc71](https://github.com/Finch-API/finch-api-node/commit/55dcc71110b196d20be9016525d5713c46a5392f))
11+
* **internal:** update `actions/checkout` version ([f12ddde](https://github.com/Finch-API/finch-api-node/commit/f12ddde51a3ce201ef0673ae99191f7b2c58b62b))
12+
* **internal:** upgrade babel, qs, js-yaml ([d7be1cd](https://github.com/Finch-API/finch-api-node/commit/d7be1cd05439ac70eb37066e2c097014bbdf5f70))
13+
* **mcp:** add intent param to execute tool ([167089e](https://github.com/Finch-API/finch-api-node/commit/167089ee6f1bf45a22a902bd24c60399d7d165af))
14+
* **mcp:** pass intent param to execute handler ([78d31fd](https://github.com/Finch-API/finch-api-node/commit/78d31fd3ec977712f2b66816dd2a20f611bfa75f))
15+
* **mcp:** upgrade dependencies ([d16fb7c](https://github.com/Finch-API/finch-api-node/commit/d16fb7c18616ff555327e58c45f68a1286a1595e))
16+
317
## 8.2.0 (2026-01-13)
418

519
Full Changelog: [v8.1.1...v8.2.0](https://github.com/Finch-API/finch-api-node/compare/v8.1.1...v8.2.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tryfinch/finch-api",
3-
"version": "8.2.0",
3+
"version": "8.2.1",
44
"description": "The official TypeScript library for the Finch API",
55
"author": "Finch <founders@tryfinch.com>",
66
"types": "dist/index.d.ts",

packages/mcp-server/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tryfinch/finch-api-mcp",
3-
"version": "8.2.0",
3+
"version": "8.2.1",
44
"description": "The official MCP Server for the Finch API",
55
"author": "Finch <founders@tryfinch.com>",
66
"types": "dist/index.d.ts",
@@ -32,13 +32,13 @@
3232
"dependencies": {
3333
"@tryfinch/finch-api": "file:../../dist/",
3434
"@cloudflare/cabidela": "^0.2.4",
35-
"@modelcontextprotocol/sdk": "^1.24.0",
35+
"@modelcontextprotocol/sdk": "^1.25.2",
3636
"@valtown/deno-http-worker": "^0.0.21",
3737
"cors": "^2.8.5",
3838
"express": "^5.1.0",
3939
"fuse.js": "^7.1.0",
4040
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
41-
"qs": "^6.14.0",
41+
"qs": "^6.14.1",
4242
"typescript": "5.8.3",
4343
"yargs": "^17.7.2",
4444
"zod": "^3.25.20",
@@ -49,7 +49,7 @@
4949
"mcp-server": "dist/index.js"
5050
},
5151
"devDependencies": {
52-
"@anthropic-ai/mcpb": "1.1.0",
52+
"@anthropic-ai/mcpb": "^2.1.2",
5353
"@types/cors": "^2.8.19",
5454
"@types/express": "^5.0.3",
5555
"@types/jest": "^29.4.0",

packages/mcp-server/src/code-tool-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type WorkerInput = {
66
project_name: string;
77
code: string;
88
client_opts: ClientOptions;
9+
intent?: string | undefined;
910
};
1011
export type WorkerOutput = {
1112
is_error: boolean;

packages/mcp-server/src/code-tool.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,24 @@ export function codeTool(): McpTool {
4040
const tool: Tool = {
4141
name: 'execute',
4242
description: prompt,
43-
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
43+
inputSchema: {
44+
type: 'object',
45+
properties: {
46+
code: {
47+
type: 'string',
48+
description: 'Code to execute.',
49+
},
50+
intent: {
51+
type: 'string',
52+
description: 'Task you are trying to perform. Used for improving the service.',
53+
},
54+
},
55+
required: ['code'],
56+
},
4457
};
4558
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
4659
const code = args.code as string;
60+
const intent = args.intent as string | undefined;
4761

4862
// this is not required, but passing a Stainless API key for the matching project_name
4963
// will allow you to run code-mode queries against non-published versions of your SDK.
@@ -66,6 +80,7 @@ export function codeTool(): McpTool {
6680
body: JSON.stringify({
6781
project_name: 'finch',
6882
code,
83+
intent,
6984
client_opts: { accessToken: readEnv('FINCH_ACCESS_TOKEN') },
7085
} satisfies WorkerInput),
7186
});

packages/mcp-server/src/http.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ const post =
4848
const server = newServer({ ...options, req, res });
4949
// If we return null, we already set the authorization error.
5050
if (server === null) return;
51-
const transport = new StreamableHTTPServerTransport({
52-
// Stateless server
53-
sessionIdGenerator: undefined,
54-
});
55-
await server.connect(transport);
51+
const transport = new StreamableHTTPServerTransport();
52+
await server.connect(transport as any);
5653
await transport.handleRequest(req, res, req.body);
5754
};
5855

0 commit comments

Comments
 (0)