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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "9.10.0"
".": "9.10.1"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 9.10.1 (2026-05-13)

Full Changelog: [v9.10.0...v9.10.1](https://github.com/Finch-API/finch-api-node/compare/v9.10.0...v9.10.1)

### Chores

* **internal:** codegen related update ([f26e177](https://github.com/Finch-API/finch-api-node/commit/f26e177d93f57676e847b449c776d96e23e621ab))

## 9.10.0 (2026-05-12)

Full Changelog: [v9.9.0...v9.10.0](https://github.com/Finch-API/finch-api-node/compare/v9.9.0...v9.10.0)
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": "@tryfinch/finch-api",
"version": "9.10.0",
"version": "9.10.1",
"description": "The official TypeScript library for the Finch API",
"author": "Finch <founders@tryfinch.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dxt_version": "0.2",
"name": "@tryfinch/finch-api-mcp",
"version": "9.10.0",
"version": "9.10.1",
"description": "The official MCP Server for the Finch API",
"author": {
"name": "Finch",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tryfinch/finch-api-mcp",
"version": "9.10.0",
"version": "9.10.1",
"description": "The official MCP Server for the Finch API",
"author": "Finch <founders@tryfinch.com>",
"types": "dist/index.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions packages/mcp-server/src/local-docs-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,32 +478,32 @@ const EMBEDDED_METHODS: MethodEntry[] = [
typescript: {
method: 'client.hris.directory.listIndividuals',
example:
"import Finch from '@tryfinch/finch-api';\n\nconst client = new Finch({\n accessToken: 'My Access Token',\n});\n\nconst response = await client.hris.directory.listIndividuals();\n\nconsole.log(response.individuals);",
"import Finch from '@tryfinch/finch-api';\n\nconst client = new Finch({\n accessToken: 'My Access Token',\n});\n\n// Automatically fetches more pages as needed.\nfor await (const individualInDirectory of client.hris.directory.listIndividuals()) {\n console.log(individualInDirectory.id);\n}",
},
python: {
method: 'hris.directory.list_individuals',
example:
'from finch import Finch\n\nclient = Finch(\n access_token="My Access Token",\n)\nresponse = client.hris.directory.list_individuals()\nprint(response.individuals)',
'from finch import Finch\n\nclient = Finch(\n access_token="My Access Token",\n)\npage = client.hris.directory.list_individuals()\npage = page.individuals[0]\nprint(page.id)',
},
java: {
method: 'hris().directory().listIndividuals',
example:
'package com.tryfinch.api.example;\n\nimport com.tryfinch.api.client.FinchClient;\nimport com.tryfinch.api.client.okhttp.FinchOkHttpClient;\nimport com.tryfinch.api.models.DirectoryListIndividualsResponse;\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n FinchClient client = FinchOkHttpClient.builder()\n .fromEnv()\n .accessToken("My Access Token")\n .build();\n\n DirectoryListIndividualsResponse response = client.hris().directory().listIndividuals();\n }\n}',
'package com.tryfinch.api.example;\n\nimport com.tryfinch.api.client.FinchClient;\nimport com.tryfinch.api.client.okhttp.FinchOkHttpClient;\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsPage;\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n FinchClient client = FinchOkHttpClient.builder()\n .fromEnv()\n .accessToken("My Access Token")\n .build();\n\n HrisDirectoryListIndividualsPage page = client.hris().directory().listIndividuals();\n }\n}',
},
kotlin: {
method: 'hris().directory().listIndividuals',
example:
'package com.tryfinch.api.example\n\nimport com.tryfinch.api.client.FinchClient\nimport com.tryfinch.api.client.okhttp.FinchOkHttpClient\nimport com.tryfinch.api.models.DirectoryListIndividualsResponse\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsParams\n\nfun main() {\n val client: FinchClient = FinchOkHttpClient.builder()\n .fromEnv()\n .accessToken("My Access Token")\n .build()\n\n val response: DirectoryListIndividualsResponse = client.hris().directory().listIndividuals()\n}',
'package com.tryfinch.api.example\n\nimport com.tryfinch.api.client.FinchClient\nimport com.tryfinch.api.client.okhttp.FinchOkHttpClient\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsPage\nimport com.tryfinch.api.models.HrisDirectoryListIndividualsParams\n\nfun main() {\n val client: FinchClient = FinchOkHttpClient.builder()\n .fromEnv()\n .accessToken("My Access Token")\n .build()\n\n val page: HrisDirectoryListIndividualsPage = client.hris().directory().listIndividuals()\n}',
},
go: {
method: 'client.HRIS.Directory.ListIndividuals',
example:
'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/Finch-API/finch-api-go"\n\t"github.com/Finch-API/finch-api-go/option"\n)\n\nfunc main() {\n\tclient := finchgo.NewClient(\n\t\toption.WithAccessToken("My Access Token"),\n\t)\n\tresponse, err := client.HRIS.Directory.ListIndividuals(context.TODO(), finchgo.HRISDirectoryListIndividualsParams{})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", response.Individuals)\n}\n',
'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/Finch-API/finch-api-go"\n\t"github.com/Finch-API/finch-api-go/option"\n)\n\nfunc main() {\n\tclient := finchgo.NewClient(\n\t\toption.WithAccessToken("My Access Token"),\n\t)\n\tpage, err := client.HRIS.Directory.ListIndividuals(context.TODO(), finchgo.HRISDirectoryListIndividualsParams{})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf("%+v\\n", page)\n}\n',
},
ruby: {
method: 'hris.directory.list_individuals',
example:
'require "finch_api"\n\nfinch = FinchAPI::Client.new(access_token: "My Access Token")\n\nresponse = finch.hris.directory.list_individuals\n\nputs(response)',
'require "finch_api"\n\nfinch = FinchAPI::Client.new(access_token: "My Access Token")\n\npage = finch.hris.directory.list_individuals\n\nputs(page)',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'tryfinch_finch_api_api',
version: '9.10.0',
version: '9.10.1',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
12 changes: 1 addition & 11 deletions src/resources/hris/directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,11 @@ export interface DirectoryListParams extends IndividualsPageParams {
entity_ids?: Array<string>;
}

export interface DirectoryListIndividualsParams {
export interface DirectoryListIndividualsParams extends IndividualsPageParams {
/**
* The entity IDs to specify which entities' data to access.
*/
entity_ids?: Array<string>;

/**
* Number of employees to return (defaults to all)
*/
limit?: number;

/**
* Index to start from (defaults to 0)
*/
offset?: number;
}

export declare namespace Directory {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '9.10.0'; // x-release-please-version
export const VERSION = '9.10.1'; // x-release-please-version
Loading