diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 99b7abe..e4587ec 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -18,7 +18,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - id-token: write steps: - uses: actions/checkout@v6 @@ -43,6 +42,8 @@ jobs: PATHS_RELEASED='[\".\", \"packages/mcp-server\"]' fi pnpm tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }" + env: + NPM_TOKEN: ${{ secrets.CAS_PARSER_NPM_TOKEN || secrets.NPM_TOKEN }} - name: Upload MCP Server DXT GitHub release asset run: | diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 2e65d84..51427fc 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,4 +17,6 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment + env: + NPM_TOKEN: ${{ secrets.CAS_PARSER_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9464c4e..64e0684 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.6.2" + ".": "1.7.0" } diff --git a/.stats.yml b/.stats.yml index e7c969a..32808d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 17 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f -config_hash: e78bb30ba7c06b2a6d20092a5872aec2 +config_hash: ab495a165f0919b37cbf9efbd0f0e6ef diff --git a/CHANGELOG.md b/CHANGELOG.md index 77cde51..b4db537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.7.0 (2026-02-14) + +Full Changelog: [v1.6.2...v1.7.0](https://github.com/CASParser/cas-parser-node/compare/v1.6.2...v1.7.0) + +### Features + +* **api:** manual updates ([d96862e](https://github.com/CASParser/cas-parser-node/commit/d96862e6b10001d9e69c6be976c8cf1c7ed22bcc)) +* **api:** manual updates ([ea2a1c6](https://github.com/CASParser/cas-parser-node/commit/ea2a1c684cfdef56c82b33b750ac645f1ff2b135)) + + +### Chores + +* update SDK settings ([a386e8a](https://github.com/CASParser/cas-parser-node/commit/a386e8aadbd317afccb344358a4ed04ed741d2f6)) + ## 1.6.2 (2026-02-14) Full Changelog: [v1.6.1...v1.6.2](https://github.com/CASParser/cas-parser-node/compare/v1.6.1...v1.6.2) diff --git a/README.md b/README.md index 7dd5aae..5bca122 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This library provides convenient access to the Cas Parser REST API from server-side TypeScript or JavaScript. -The full API of this library can be found in [api.md](api.md). +The REST API documentation can be found on [docs.casparser.in](https://docs.casparser.in). The full API of this library can be found in [api.md](api.md). It is generated with [Stainless](https://www.stainless.com/). @@ -12,8 +12,8 @@ It is generated with [Stainless](https://www.stainless.com/). Use the Cas Parser MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. -[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cas-parser-mcp&config=eyJuYW1lIjoiY2FzLXBhcnNlci1tY3AiLCJ0cmFuc3BvcnQiOiJodHRwIiwidXJsIjoiaHR0cHM6Ly9jYXMtcGFyc2VyLnN0bG1jcC5jb20iLCJoZWFkZXJzIjp7IngtYXBpLWtleSI6Ik15IEFQSSBLZXkifX0) -[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cas-parser-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fcas-parser.stlmcp.com%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22My%20API%20Key%22%7D%7D) +[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cas-parser-node-mcp&config=eyJuYW1lIjoiY2FzLXBhcnNlci1ub2RlLW1jcCIsInRyYW5zcG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dmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cas-parser-node-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fcas-parser.stlmcp.com%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22My%20API%20Key%22%7D%7D) > Note: You may need to set environment variables in your MCP client. diff --git a/bin/check-release-environment b/bin/check-release-environment index 6b43775..e4b6d58 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,6 +2,10 @@ errors=() +if [ -z "${NPM_TOKEN}" ]; then + errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets") +fi + lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/bin/publish-npm b/bin/publish-npm index 4e094d7..a609989 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -2,12 +2,7 @@ set -eux -if [[ ${NPM_TOKEN:-} ]]; then - npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" -elif [[ ! ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-} ]]; then - echo "ERROR: NPM_TOKEN must be set if not running in a Github Action with id-token permission" - exit 1 -fi +npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" pnpm build cd dist @@ -62,8 +57,5 @@ else TAG="latest" fi -# Install OIDC compatible npm version -npm install --prefix ../oidc/ npm@11.6.2 - # Publish with the appropriate tag -pnpm publish --npm-path "$(cd ../ && pwd)/oidc/node_modules/.bin/npm" --no-git-checks --tag "$TAG" +pnpm publish --no-git-checks --tag "$TAG" diff --git a/package.json b/package.json index 1d40f66..1e210b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cas-parser-node", - "version": "1.6.2", + "version": "1.7.0", "description": "The official TypeScript library for the Cas Parser API", "author": "Cas Parser ", "types": "dist/index.d.ts", diff --git a/packages/mcp-server/Dockerfile b/packages/mcp-server/Dockerfile index dd64eab..487ca4d 100644 --- a/packages/mcp-server/Dockerfile +++ b/packages/mcp-server/Dockerfile @@ -3,10 +3,10 @@ # This Dockerfile builds a Docker image for the MCP Server. # # To build the image locally: -# docker build -f packages/mcp-server/Dockerfile -t cas-parser-mcp:local . +# docker build -f packages/mcp-server/Dockerfile -t cas-parser-node-mcp:local . # # To run the image: -# docker run -i cas-parser-mcp:local [OPTIONS] +# docker run -i cas-parser-node-mcp:local [OPTIONS] # # Common options: # --tool= Include specific tools @@ -16,7 +16,7 @@ # --transport= Set transport type (stdio or http) # # For a full list of options: -# docker run -i cas-parser-mcp:local --help +# docker run -i cas-parser-node-mcp:local --help # # Note: The MCP server uses stdio transport by default. Docker's -i flag # enables interactive mode, allowing the container to communicate over stdin/stdout. diff --git a/packages/mcp-server/README.md b/packages/mcp-server/README.md index 816bfdd..2c1abef 100644 --- a/packages/mcp-server/README.md +++ b/packages/mcp-server/README.md @@ -11,7 +11,7 @@ You can run the MCP Server directly via `npx`: ```sh export CAS_PARSER_API_KEY="My API Key" export CAS_PARSER_ENVIRONMENT="production" -npx -y cas-parser-mcp@latest +npx -y cas-parser-node-mcp@latest ``` ### Via MCP Client @@ -26,7 +26,7 @@ For clients with a configuration JSON, it might look something like this: "mcpServers": { "cas_parser_node_api": { "command": "npx", - "args": ["-y", "cas-parser-mcp"], + "args": ["-y", "cas-parser-node-mcp"], "env": { "CAS_PARSER_API_KEY": "My API Key", "CAS_PARSER_ENVIRONMENT": "production" @@ -41,14 +41,14 @@ For clients with a configuration JSON, it might look something like this: If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server. -[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cas-parser-mcp&config=eyJuYW1lIjoiY2FzLXBhcnNlci1tY3AiLCJ0cmFuc3BvcnQiOiJodHRwIiwidXJsIjoiaHR0cHM6Ly9jYXMtcGFyc2VyLnN0bG1jcC5jb20iLCJoZWFkZXJzIjp7IngtYXBpLWtleSI6Ik15IEFQSSBLZXkifX0) +[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cas-parser-node-mcp&config=eyJuYW1lIjoiY2FzLXBhcnNlci1ub2RlLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL2Nhcy1wYXJzZXIuc3RsbWNwLmNvbSIsImhlYWRlcnMiOnsieC1hcGkta2V5IjoiTXkgQVBJIEtleSJ9fQ) ### VS Code If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration. -[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cas-parser-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fcas-parser.stlmcp.com%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22My%20API%20Key%22%7D%7D) +[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cas-parser-node-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fcas-parser.stlmcp.com%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22My%20API%20Key%22%7D%7D) ### Claude Code @@ -56,7 +56,7 @@ If you use Claude Code, you can install the MCP server by running the command be environment variables in Claude Code's `.claude.json`, which can be found in your home directory. ``` -claude mcp add cas_parser_mcp_api --header "x-api-key: My API Key" --transport http https://cas-parser.stlmcp.com +claude mcp add cas_parser_node_mcp_api --header "x-api-key: My API Key" --transport http https://cas-parser.stlmcp.com ``` ## Code Mode diff --git a/packages/mcp-server/build b/packages/mcp-server/build index c71e083..90e5f33 100644 --- a/packages/mcp-server/build +++ b/packages/mcp-server/build @@ -29,7 +29,7 @@ cp tsconfig.dist-src.json dist/src/tsconfig.json chmod +x dist/index.js -DIST_PATH=./dist PKG_IMPORT_PATH=cas-parser-mcp/ node ../../scripts/utils/postprocess-files.cjs +DIST_PATH=./dist PKG_IMPORT_PATH=cas-parser-node-mcp/ node ../../scripts/utils/postprocess-files.cjs # mcp bundle rm -rf dist-bundle cas_parser_node_api.mcpb; mkdir dist-bundle diff --git a/packages/mcp-server/jest.config.ts b/packages/mcp-server/jest.config.ts index a0088be..35e4bb4 100644 --- a/packages/mcp-server/jest.config.ts +++ b/packages/mcp-server/jest.config.ts @@ -7,8 +7,8 @@ const config: JestConfigWithTsJest = { '^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }], }, moduleNameMapper: { - '^cas-parser-mcp$': '/src/index.ts', - '^cas-parser-mcp/(.*)$': '/src/$1', + '^cas-parser-node-mcp$': '/src/index.ts', + '^cas-parser-node-mcp/(.*)$': '/src/$1', }, modulePathIgnorePatterns: ['/dist/'], testPathIgnorePatterns: ['scripts'], diff --git a/packages/mcp-server/manifest.json b/packages/mcp-server/manifest.json index 195966a..fd1110d 100644 --- a/packages/mcp-server/manifest.json +++ b/packages/mcp-server/manifest.json @@ -1,6 +1,6 @@ { "dxt_version": "0.2", - "name": "cas-parser-mcp", + "name": "cas-parser-node-mcp", "version": "1.5.1", "description": "The official MCP Server for the Cas Parser API", "author": { @@ -12,7 +12,7 @@ "url": "git+https://github.com/CASParser/cas-parser-node.git" }, "homepage": "https://github.com/CASParser/cas-parser-node/tree/main/packages/mcp-server#readme", - "documentation": "https://docs.casparser.in/reference", + "documentation": "https://docs.casparser.in", "server": { "type": "node", "entry_point": "index.js", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index 12e618f..874dbb9 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -1,6 +1,6 @@ { - "name": "cas-parser-mcp", - "version": "1.6.2", + "name": "cas-parser-node-mcp", + "version": "1.7.0", "description": "The official MCP Server for the Cas Parser API", "author": "Cas Parser ", "types": "dist/index.d.ts", @@ -73,8 +73,8 @@ "tsconfig-paths": "^4.0.0" }, "imports": { - "cas-parser-mcp": ".", - "cas-parser-mcp/*": "./src/*" + "cas-parser-node-mcp": ".", + "cas-parser-node-mcp/*": "./src/*" }, "exports": { ".": { diff --git a/packages/mcp-server/src/server.ts b/packages/mcp-server/src/server.ts index b50ce6f..11c7dd4 100644 --- a/packages/mcp-server/src/server.ts +++ b/packages/mcp-server/src/server.ts @@ -56,7 +56,7 @@ export const newMcpServer = async () => new McpServer( { name: 'cas_parser_node_api', - version: '1.6.2', + version: '1.7.0', }, { instructions: await getInstructions(), diff --git a/packages/mcp-server/tsconfig.build.json b/packages/mcp-server/tsconfig.build.json index e2ea8c9..83df2c1 100644 --- a/packages/mcp-server/tsconfig.build.json +++ b/packages/mcp-server/tsconfig.build.json @@ -5,8 +5,8 @@ "compilerOptions": { "rootDir": "./dist/src", "paths": { - "cas-parser-mcp/*": ["./dist/src/*"], - "cas-parser-mcp": ["./dist/src/index.ts"] + "cas-parser-node-mcp/*": ["./dist/src/*"], + "cas-parser-node-mcp": ["./dist/src/index.ts"] }, "noEmit": false, "declaration": true, diff --git a/packages/mcp-server/tsconfig.json b/packages/mcp-server/tsconfig.json index e79ee43..53edc11 100644 --- a/packages/mcp-server/tsconfig.json +++ b/packages/mcp-server/tsconfig.json @@ -8,8 +8,8 @@ "moduleResolution": "node", "esModuleInterop": true, "paths": { - "cas-parser-mcp/*": ["./src/*"], - "cas-parser-mcp": ["./src/index.ts"] + "cas-parser-node-mcp/*": ["./src/*"], + "cas-parser-node-mcp": ["./src/index.ts"] }, "noEmit": true, diff --git a/src/version.ts b/src/version.ts index 706f69e..1c2e261 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.6.2'; // x-release-please-version +export const VERSION = '1.7.0'; // x-release-please-version