diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5a12c39..e1a01c0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.28" + ".": "0.1.0-alpha.29" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 3252293..90b77ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.29 (2026-02-27) + +Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/Scan-Documents/node-sdk/compare/v0.1.0-alpha.28...v0.1.0-alpha.29) + +### Bug Fixes + +* **mcp:** update prompt ([7321f91](https://github.com/Scan-Documents/node-sdk/commit/7321f91402857abb5b9beb3a43da0393cbb345fe)) + ## 0.1.0-alpha.28 (2026-02-27) Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/Scan-Documents/node-sdk/compare/v0.1.0-alpha.27...v0.1.0-alpha.28) diff --git a/package.json b/package.json index 85cc81e..94b43dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scan-documents", - "version": "0.1.0-alpha.28", + "version": "0.1.0-alpha.29", "description": "The official TypeScript library for the Scan Documents API", "author": "Scan Documents ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/manifest.json b/packages/mcp-server/manifest.json index 1de2570..96f58d7 100644 --- a/packages/mcp-server/manifest.json +++ b/packages/mcp-server/manifest.json @@ -1,7 +1,7 @@ { "dxt_version": "0.2", "name": "scan-documents-mcp", - "version": "0.1.0-alpha.28", + "version": "0.1.0-alpha.29", "description": "The official MCP Server for the Scan Documents API", "author": { "name": "Scan Documents", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index b4c6232..2b6cc8f 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -1,6 +1,6 @@ { "name": "scan-documents-mcp", - "version": "0.1.0-alpha.28", + "version": "0.1.0-alpha.29", "description": "The official MCP Server for the Scan Documents API", "author": "Scan Documents ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/src/code-tool.ts b/packages/mcp-server/src/code-tool.ts index 6b0cf99..b6249a5 100644 --- a/packages/mcp-server/src/code-tool.ts +++ b/packages/mcp-server/src/code-tool.ts @@ -23,7 +23,7 @@ import { ClientOptions } from 'scan-documents'; const prompt = `Runs JavaScript code to interact with the Scan Documents API. -You are a skilled programmer writing code to interface with the service. +You are a skilled TypeScript programmer writing code to interface with the service. Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run. For example: @@ -37,7 +37,9 @@ You will be returned anything that your function returns, plus the results of an Do not add try-catch blocks for single API calls. The tool will handle errors for you. Do not add comments unless necessary for generating better code. Code will run in a container, and cannot interact with the network outside of the given SDK client. -Variables will not persist between calls, so make sure to return or log any data you might need later.`; +Variables will not persist between calls, so make sure to return or log any data you might need later. +Remember that you are writing TypeScript code, so you need to be careful with your types. +Always type dynamic key-value stores explicitly as Record instead of {}.`; /** * A tool that runs code against a copy of the SDK. diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index 890f3da..8eb3e2f 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -20,7 +20,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) => new McpServer( { name: 'scan_documents_api', - version: '0.1.0-alpha.28', + version: '0.1.0-alpha.29', }, { instructions: await getInstructions(stainlessApiKey), diff --git a/src/version.ts b/src/version.ts index 522a9fb..2017d79 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.0-alpha.28'; // x-release-please-version +export const VERSION = '0.1.0-alpha.29'; // x-release-please-version