ris-mcp-ts 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -11
- package/dist/http.d.ts +2 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +3 -0
- package/dist/http.js.map +1 -1
- package/dist/index.js +0 -0
- package/package.json +22 -29
package/README.md
CHANGED
|
@@ -46,13 +46,13 @@ The server translates these natural language requests into structured API calls
|
|
|
46
46
|
Run directly without installation:
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
|
|
49
|
+
pnpm dlx ris-mcp-ts
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Or install globally:
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
|
|
55
|
+
pnpm add -g ris-mcp-ts
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Configuration
|
|
@@ -76,6 +76,8 @@ Add to your Claude Desktop config (Settings > Developer > Edit Config):
|
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
> **Note:** The "Add custom connector" UI in Claude Desktop only supports remote MCP servers (HTTP/SSE). Local stdio servers like this one must be configured via the JSON file.
|
|
79
|
+
>
|
|
80
|
+
> **Tip:** You can also use `pnpm dlx` instead of `npx` in all configuration examples if you prefer pnpm.
|
|
79
81
|
|
|
80
82
|
### Claude Code
|
|
81
83
|
|
|
@@ -136,7 +138,8 @@ Add to your Windsurf MCP config at `~/.codeium/windsurf/mcp_config.json`:
|
|
|
136
138
|
Any MCP-compatible client can connect via stdio transport:
|
|
137
139
|
|
|
138
140
|
```bash
|
|
139
|
-
npx ris-mcp-ts
|
|
141
|
+
npx -y ris-mcp-ts
|
|
142
|
+
# or: pnpm dlx ris-mcp-ts
|
|
140
143
|
```
|
|
141
144
|
|
|
142
145
|
## Available Tools
|
|
@@ -475,20 +478,20 @@ Search state ordinance gazettes (Verordnungsblätter).
|
|
|
475
478
|
```bash
|
|
476
479
|
git clone https://github.com/philrox/ris-mcp-ts.git
|
|
477
480
|
cd ris-mcp-ts
|
|
478
|
-
|
|
479
|
-
|
|
481
|
+
pnpm install
|
|
482
|
+
pnpm run build
|
|
480
483
|
```
|
|
481
484
|
|
|
482
485
|
### Scripts
|
|
483
486
|
|
|
484
487
|
| Script | Description |
|
|
485
488
|
|--------|-------------|
|
|
486
|
-
| `
|
|
487
|
-
| `
|
|
488
|
-
| `
|
|
489
|
-
| `
|
|
490
|
-
| `
|
|
491
|
-
| `
|
|
489
|
+
| `pnpm run dev` | Start with hot reload (tsx) |
|
|
490
|
+
| `pnpm run build` | Compile TypeScript |
|
|
491
|
+
| `pnpm start` | Run compiled version |
|
|
492
|
+
| `pnpm test` | Run all tests |
|
|
493
|
+
| `pnpm run check` | Typecheck + lint + format check + tests |
|
|
494
|
+
| `pnpm run inspect` | Launch MCP Inspector for manual testing |
|
|
492
495
|
|
|
493
496
|
### Project Structure
|
|
494
497
|
|
package/dist/http.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* for deployment on cloud platforms (e.g., AWS Lightsail).
|
|
6
6
|
*/
|
|
7
7
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
8
|
-
|
|
8
|
+
import type { Express } from 'express';
|
|
9
|
+
export declare const app: Express;
|
|
9
10
|
export declare const sessions: Map<string, StreamableHTTPServerTransport>;
|
|
10
11
|
export declare const mcpLimiter: import("express-rate-limit").RateLimitRequestHandler;
|
|
11
12
|
//# sourceMappingURL=http.d.ts.map
|
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,KAAK,EAAE,OAAO,EAAqB,MAAM,SAAS,CAAC;AAM1D,eAAO,MAAM,GAAG,EAAE,OAAmB,CAAC;AACtC,eAAO,MAAM,QAAQ,4CAAmD,CAAC;AAKzE,eAAO,MAAM,UAAU,sDAQrB,CAAC"}
|
package/dist/http.js
CHANGED
|
@@ -42,6 +42,9 @@ app.post('/mcp', async (req, res) => {
|
|
|
42
42
|
await existing.handleRequest(req, res, req.body);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
+
// Session expired or server restarted — client must reinitialize
|
|
46
|
+
res.status(404).json({ error: 'Session nicht gefunden. Bitte neu verbinden.' });
|
|
47
|
+
return;
|
|
45
48
|
}
|
|
46
49
|
// Create new session
|
|
47
50
|
const transport = new StreamableHTTPServerTransport({
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,OAAO,OAAO,MAA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AC,GAAG,CAAC,yCAAyC,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ris-mcp-ts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"mcpName": "io.github.philrox/ris",
|
|
5
5
|
"description": "MCP Server for Austrian Legal Information System (RIS) - TypeScript",
|
|
6
6
|
"type": "module",
|
|
@@ -8,27 +8,6 @@
|
|
|
8
8
|
"bin": {
|
|
9
9
|
"ris-mcp-ts": "dist/index.js"
|
|
10
10
|
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc",
|
|
13
|
-
"dev": "tsx src/index.ts",
|
|
14
|
-
"start": "node dist/index.js",
|
|
15
|
-
"start:http": "node dist/http.js",
|
|
16
|
-
"dev:http": "tsx src/http.ts",
|
|
17
|
-
"inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
|
|
18
|
-
"test": "vitest run",
|
|
19
|
-
"test:coverage": "vitest run --coverage",
|
|
20
|
-
"test:watch": "vitest",
|
|
21
|
-
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
22
|
-
"typecheck": "tsc --noEmit",
|
|
23
|
-
"lint": "eslint src",
|
|
24
|
-
"lint:fix": "eslint src --fix",
|
|
25
|
-
"check": "npm run typecheck && npm run lint && npm run format:check && npm run test",
|
|
26
|
-
"format": "prettier --write src/",
|
|
27
|
-
"format:check": "prettier --check src/",
|
|
28
|
-
"prebuild": "npm run typecheck",
|
|
29
|
-
"prepublishOnly": "npm run check && npm run build",
|
|
30
|
-
"prepare": "husky"
|
|
31
|
-
},
|
|
32
11
|
"lint-staged": {
|
|
33
12
|
"src/**/*.ts": [
|
|
34
13
|
"prettier --write",
|
|
@@ -64,11 +43,6 @@
|
|
|
64
43
|
"typescript-eslint": "^8.56.1",
|
|
65
44
|
"vitest": "^4.0.18"
|
|
66
45
|
},
|
|
67
|
-
"overrides": {
|
|
68
|
-
"eslint-plugin-import-x": {
|
|
69
|
-
"eslint": "$eslint"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
46
|
"engines": {
|
|
73
47
|
"node": ">=20.0.0"
|
|
74
48
|
},
|
|
@@ -96,5 +70,24 @@
|
|
|
96
70
|
"!dist/__tests__/",
|
|
97
71
|
"README.md",
|
|
98
72
|
"LICENSE"
|
|
99
|
-
]
|
|
100
|
-
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsc",
|
|
76
|
+
"dev": "tsx src/index.ts",
|
|
77
|
+
"start": "node dist/index.js",
|
|
78
|
+
"start:http": "node dist/http.js",
|
|
79
|
+
"dev:http": "tsx src/http.ts",
|
|
80
|
+
"inspect": "pnpm dlx @modelcontextprotocol/inspector node dist/index.js",
|
|
81
|
+
"test": "vitest run",
|
|
82
|
+
"test:coverage": "vitest run --coverage",
|
|
83
|
+
"test:watch": "vitest",
|
|
84
|
+
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
85
|
+
"typecheck": "tsc --noEmit",
|
|
86
|
+
"lint": "eslint src",
|
|
87
|
+
"lint:fix": "eslint src --fix",
|
|
88
|
+
"check": "pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run test",
|
|
89
|
+
"format": "prettier --write src/",
|
|
90
|
+
"format:check": "prettier --check src/",
|
|
91
|
+
"prebuild": "pnpm run typecheck"
|
|
92
|
+
}
|
|
93
|
+
}
|