mcp-for-i 0.1.13 → 0.2.0

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.
Files changed (67) hide show
  1. package/README.md +17 -0
  2. package/dist/config/store.js +229 -109
  3. package/dist/controlplane/auth.js +128 -0
  4. package/dist/controlplane/clientIntegrationService.js +83 -4
  5. package/dist/controlplane/commands.js +14 -9
  6. package/dist/controlplane/connectionService.js +110 -5
  7. package/dist/controlplane/connectionTest.js +329 -0
  8. package/dist/controlplane/errors.js +12 -0
  9. package/dist/controlplane/runtimeService.js +98 -26
  10. package/dist/controlplane/server.js +122 -11
  11. package/dist/controlplane/serverShared.js +25 -6
  12. package/dist/controlplane/serviceManager.js +113 -100
  13. package/dist/controlplane/ui.js +1742 -920
  14. package/dist/ibmi/CompileTools.js +29 -1
  15. package/dist/ibmi/IBMiContent.js +435 -63
  16. package/dist/ibmi/IbmDocs.js +685 -0
  17. package/dist/ibmi/LocalLanguageActions.js +129 -3
  18. package/dist/ibmi/Search.js +158 -52
  19. package/dist/ibmi/Tools.js +7 -10
  20. package/dist/ibmi/client.js +220 -31
  21. package/dist/ibmi/evfevent.js +256 -0
  22. package/dist/ibmi/knownHosts.js +190 -0
  23. package/dist/ibmi/libraryList.js +93 -0
  24. package/dist/ibmi/sourceInspect.js +815 -0
  25. package/dist/ibmi/sqlJob.js +888 -0
  26. package/dist/ibmi/sqlParse.js +317 -0
  27. package/dist/ibmi/tn5250/certTrust.js +59 -0
  28. package/dist/ibmi/tn5250/client.js +310 -0
  29. package/dist/ibmi/tn5250/datastream.js +109 -0
  30. package/dist/ibmi/tn5250/ebcdic.js +74 -0
  31. package/dist/ibmi/tn5250/index.js +6 -0
  32. package/dist/ibmi/tn5250/screen.js +827 -0
  33. package/dist/ibmi/tn5250/telnet.js +186 -0
  34. package/dist/ibmi/variables.js +18 -7
  35. package/dist/index.js +43 -22
  36. package/dist/mcp/annotations.js +155 -0
  37. package/dist/mcp/audit.js +490 -133
  38. package/dist/mcp/confirm.js +48 -0
  39. package/dist/mcp/context.js +43 -5
  40. package/dist/mcp/deployMethods.js +192 -0
  41. package/dist/mcp/logger.js +5 -10
  42. package/dist/mcp/modules/bulkMembers.js +476 -0
  43. package/dist/mcp/modules/changedLines.js +189 -0
  44. package/dist/mcp/modules/compare.js +198 -0
  45. package/dist/mcp/modules/compile.js +515 -0
  46. package/dist/mcp/modules/ifsOps.js +123 -0
  47. package/dist/mcp/modules/index.js +38 -0
  48. package/dist/mcp/modules/inspect.js +811 -0
  49. package/dist/mcp/modules/libl.js +246 -0
  50. package/dist/mcp/modules/members.js +171 -0
  51. package/dist/mcp/modules/objects.js +339 -0
  52. package/dist/mcp/modules/system.js +266 -0
  53. package/dist/mcp/modules/tn5250.js +515 -0
  54. package/dist/mcp/policy.js +412 -0
  55. package/dist/mcp/tools.js +1700 -698
  56. package/dist/security/credentialStore.js +62 -13
  57. package/dist/security/localPaths.js +138 -0
  58. package/dist/security/redact.js +79 -0
  59. package/dist/util/atomicWrite.js +101 -0
  60. package/dist/util/fileLock.js +206 -0
  61. package/docs/capabilities.md +50 -7
  62. package/docs/configuration.md +189 -60
  63. package/docs/examples.md +109 -73
  64. package/docs/overview.md +15 -15
  65. package/docs/security.md +101 -16
  66. package/docs/tools.md +363 -188
  67. package/package.json +56 -53
package/package.json CHANGED
@@ -1,53 +1,56 @@
1
- {
2
- "name": "mcp-for-i",
3
- "version": "0.1.13",
4
- "private": false,
5
- "description": "Local MCP server and control plane for IBM i workflows",
6
- "type": "module",
7
- "homepage": "https://github.com/ashishthomas2202/mcp-for-i",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/ashishthomas2202/mcp-for-i.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/ashishthomas2202/mcp-for-i/issues"
14
- },
15
- "files": [
16
- "dist",
17
- "README.md",
18
- "docs"
19
- ],
20
- "bin": {
21
- "mcp-for-i": "dist/index.js",
22
- "mcp-for-i-control": "dist/controlplane/index.js"
23
- },
24
- "scripts": {
25
- "prepack": "npm run build",
26
- "build": "tsc -p tsconfig.json",
27
- "start": "node dist/index.js",
28
- "start:controlplane": "node dist/controlplane/index.js",
29
- "dev": "ts-node src/index.ts",
30
- "dev:controlplane": "ts-node src/controlplane/index.ts",
31
- "test": "npm run build && node --test test/tools.test.mjs test/variables.test.mjs test/validation.test.mjs test/config.migration.test.mjs test/sql.parse.test.mjs test/audit.chain.test.mjs test/controlplane.platform.test.mjs test/controlplane.service.test.mjs test/credential.environment.test.mjs",
32
- "test:all": "npm run build && node --test test/*.mjs",
33
- "test:ibmi": "npm run build && node --test test/ibmi.integration.test.mjs",
34
- "test:mcp": "npm run build && node --test test/mcp.integration.test.mjs",
35
- "release:auto": "node scripts/release-auto.mjs patch",
36
- "release:patch": "node scripts/release-auto.mjs patch",
37
- "release:minor": "node scripts/release-auto.mjs minor",
38
- "release:major": "node scripts/release-auto.mjs major"
39
- },
40
- "dependencies": {
41
- "@modelcontextprotocol/sdk": "^1.25.3",
42
- "diff": "^5.2.0",
43
- "keytar": "^7.9.0",
44
- "node-ssh": "^13.1.0",
45
- "zod-to-json-schema": "^3.23.2"
46
- },
47
- "devDependencies": {
48
- "@types/diff": "^7.0.2",
49
- "dotenv": "^17.2.3",
50
- "ts-node": "^10.9.0",
51
- "typescript": "^5.4.0"
52
- }
53
- }
1
+ {
2
+ "name": "mcp-for-i",
3
+ "version": "0.2.0",
4
+ "private": false,
5
+ "description": "Local MCP server and control plane for IBM i workflows",
6
+ "type": "module",
7
+ "homepage": "https://github.com/ashishthomas2202/mcp-for-i",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ashishthomas2202/mcp-for-i.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/ashishthomas2202/mcp-for-i/issues"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "docs"
19
+ ],
20
+ "bin": {
21
+ "mcp-for-i": "dist/index.js",
22
+ "mcp-for-i-control": "dist/controlplane/index.js"
23
+ },
24
+ "scripts": {
25
+ "prepack": "npm run build",
26
+ "build": "tsc -p tsconfig.json",
27
+ "start": "node dist/index.js",
28
+ "start:controlplane": "node dist/controlplane/index.js",
29
+ "dev": "ts-node src/index.ts",
30
+ "dev:controlplane": "ts-node src/controlplane/index.ts",
31
+ "test": "npm run build && node scripts/run-unit-tests.mjs",
32
+ "test:all": "npm run build && node --test test/*.mjs",
33
+ "test:ibmi": "npm run build && node --test test/ibmi.integration.test.mjs",
34
+ "test:mcp": "npm run build && node --test test/mcp.integration.test.mjs",
35
+ "release:auto": "node scripts/release-auto.mjs patch",
36
+ "release:patch": "node scripts/release-auto.mjs patch",
37
+ "release:minor": "node scripts/release-auto.mjs minor",
38
+ "release:major": "node scripts/release-auto.mjs major"
39
+ },
40
+ "dependencies": {
41
+ "@ibm/mapepire-js": "^1.0.1",
42
+ "@modelcontextprotocol/sdk": "^1.25.3",
43
+ "diff": "^5.2.0",
44
+ "keytar": "^7.9.0",
45
+ "node-ssh": "^13.1.0",
46
+ "ws": "^8.22.0",
47
+ "zod-to-json-schema": "^3.23.2"
48
+ },
49
+ "devDependencies": {
50
+ "@types/diff": "^7.0.2",
51
+ "@types/ws": "^8.18.2",
52
+ "dotenv": "^17.2.3",
53
+ "ts-node": "^10.9.0",
54
+ "typescript": "^5.4.0"
55
+ }
56
+ }