Skip to content

Commit 74c41be

Browse files
Merge pull request #17 from CASParser/release-please--branches--main--changes--next--components--cas-parser-node
release: 1.9.0
2 parents e316b8c + 2826ef6 commit 74c41be

13 files changed

Lines changed: 27 additions & 71 deletions

File tree

.release-please-manifest.json

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

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-d9763d006969b49a1473851069fdfa429eb13133b64103a62963bb70ddb22305.yml
33
openapi_spec_hash: 6aee689b7a759b12c85c088c15e29bc0
4-
config_hash: 4ab3e1ee76a463e0ed214541260ee12e
4+
config_hash: 5509bb7a961ae2e79114b24c381606d4

CHANGELOG.md

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

3+
## 1.9.0 (2026-02-23)
4+
5+
Full Changelog: [v1.8.0...v1.9.0](https://github.com/CASParser/cas-parser-node/compare/v1.8.0...v1.9.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([75ec0c8](https://github.com/CASParser/cas-parser-node/commit/75ec0c8875f5ac06ef72fff853114efd020e20e0))
10+
311
## 1.8.0 (2026-02-23)
412

513
Full Changelog: [v1.7.2...v1.8.0](https://github.com/CASParser/cas-parser-node/compare/v1.7.2...v1.8.0)

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This library provides convenient access to the Cas Parser REST API from server-side TypeScript or JavaScript.
66

7-
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).
7+
The REST API documentation can be found on [casparser.in](https://casparser.in/docs). The full API of this library can be found in [api.md](api.md).
88

99
It is generated with [Stainless](https://www.stainless.com/).
1010

@@ -33,7 +33,6 @@ import CasParser from 'cas-parser-node';
3333

3434
const client = new CasParser({
3535
apiKey: process.env['CAS_PARSER_API_KEY'], // This is the default and can be omitted
36-
environment: 'environment_1', // or 'production' | 'environment_2'; defaults to 'production'
3736
});
3837

3938
const response = await client.credits.check();
@@ -51,7 +50,6 @@ import CasParser from 'cas-parser-node';
5150

5251
const client = new CasParser({
5352
apiKey: process.env['CAS_PARSER_API_KEY'], // This is the default and can be omitted
54-
environment: 'environment_1', // or 'production' | 'environment_2'; defaults to 'production'
5553
});
5654

5755
const response: CasParser.CreditCheckResponse = await client.credits.check();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cas-parser-node",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"description": "The official TypeScript library for the Cas Parser API",
55
"author": "Cas Parser <sameer@casparser.in>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ You can run the MCP Server directly via `npx`:
1010

1111
```sh
1212
export CAS_PARSER_API_KEY="My API Key"
13-
export CAS_PARSER_ENVIRONMENT="production"
1413
npx -y cas-parser-node-mcp@latest
1514
```
1615

@@ -28,8 +27,7 @@ For clients with a configuration JSON, it might look something like this:
2827
"command": "npx",
2928
"args": ["-y", "cas-parser-node-mcp"],
3029
"env": {
31-
"CAS_PARSER_API_KEY": "My API Key",
32-
"CAS_PARSER_ENVIRONMENT": "production"
30+
"CAS_PARSER_API_KEY": "My API Key"
3331
}
3432
}
3533
}

packages/mcp-server/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dxt_version": "0.2",
33
"name": "cas-parser-node-mcp",
4-
"version": "1.8.0",
4+
"version": "1.9.0",
55
"description": "The official MCP Server for the Cas Parser API",
66
"author": {
77
"name": "Cas Parser",
@@ -12,7 +12,7 @@
1212
"url": "git+https://github.com/CASParser/cas-parser-node.git"
1313
},
1414
"homepage": "https://github.com/CASParser/cas-parser-node/tree/main/packages/mcp-server#readme",
15-
"documentation": "https://docs.casparser.in",
15+
"documentation": "https://casparser.in/docs",
1616
"server": {
1717
"type": "node",
1818
"entry_point": "index.js",

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cas-parser-node-mcp",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"description": "The official MCP Server for the Cas Parser API",
55
"author": "Cas Parser <sameer@casparser.in>",
66
"types": "dist/index.d.ts",

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,14 @@ export function codeTool({ blockedMethods }: { blockedMethods: SdkMethod[] | und
103103
readEnv('CAS_PARSER_API_KEY') ?? client.apiKey,
104104
'set CAS_PARSER_API_KEY environment variable or provide apiKey client option',
105105
),
106-
CAS_PARSER_BASE_URL:
107-
readEnv('CAS_PARSER_BASE_URL') ?? readEnv('CAS_PARSER_ENVIRONMENT') ?
108-
undefined
109-
: client.baseURL ?? undefined,
106+
CAS_PARSER_BASE_URL: readEnv('CAS_PARSER_BASE_URL') ?? client.baseURL ?? undefined,
110107
}),
111108
},
112109
body: JSON.stringify({
113110
project_name: 'cas-parser',
114111
code,
115112
intent,
116-
client_opts: { environment: (readEnv('CAS_PARSER_ENVIRONMENT') || undefined) as any },
113+
client_opts: {},
117114
} satisfies WorkerInput),
118115
});
119116

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ import { getInstructions } from './instructions';
1515
import { McpOptions } from './options';
1616
import { blockedMethodsForCodeTool } from './methods';
1717
import { HandlerFunction, McpRequestContext, ToolCallResult, McpTool } from './types';
18-
import { readEnv } from './util';
1918

2019
export const newMcpServer = async (stainlessApiKey: string | undefined) =>
2120
new McpServer(
2221
{
2322
name: 'cas_parser_node_api',
24-
version: '1.8.0',
23+
version: '1.9.0',
2524
},
2625
{
2726
instructions: await getInstructions(stainlessApiKey),
@@ -65,7 +64,6 @@ export async function initMcpServer(params: {
6564
if (!_client) {
6665
try {
6766
_client = new CasParser({
68-
...{ environment: (readEnv('CAS_PARSER_ENVIRONMENT') || undefined) as any },
6967
logger,
7068
...params.clientOptions,
7169
defaultHeaders: {

0 commit comments

Comments
 (0)