@gestell/zowe-mcp 0.1.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 (94) hide show
  1. package/README.md +107 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +3 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/schema/index.d.ts +7 -0
  7. package/dist/schema/index.d.ts.map +1 -0
  8. package/dist/schema/index.js +7 -0
  9. package/dist/schema/index.js.map +1 -0
  10. package/dist/schema/prompts/workflows.d.ts +24 -0
  11. package/dist/schema/prompts/workflows.d.ts.map +1 -0
  12. package/dist/schema/prompts/workflows.js +29 -0
  13. package/dist/schema/prompts/workflows.js.map +1 -0
  14. package/dist/schema/tools/async-tasks.d.ts +18 -0
  15. package/dist/schema/tools/async-tasks.d.ts.map +1 -0
  16. package/dist/schema/tools/async-tasks.js +18 -0
  17. package/dist/schema/tools/async-tasks.js.map +1 -0
  18. package/dist/schema/tools/datasets.d.ts +56 -0
  19. package/dist/schema/tools/datasets.d.ts.map +1 -0
  20. package/dist/schema/tools/datasets.js +56 -0
  21. package/dist/schema/tools/datasets.js.map +1 -0
  22. package/dist/schema/tools/errors.d.ts +8 -0
  23. package/dist/schema/tools/errors.d.ts.map +1 -0
  24. package/dist/schema/tools/errors.js +8 -0
  25. package/dist/schema/tools/errors.js.map +1 -0
  26. package/dist/schema/tools/jobs.d.ts +38 -0
  27. package/dist/schema/tools/jobs.d.ts.map +1 -0
  28. package/dist/schema/tools/jobs.js +40 -0
  29. package/dist/schema/tools/jobs.js.map +1 -0
  30. package/dist/schema/tools/tso.d.ts +22 -0
  31. package/dist/schema/tools/tso.d.ts.map +1 -0
  32. package/dist/schema/tools/tso.js +22 -0
  33. package/dist/schema/tools/tso.js.map +1 -0
  34. package/dist/src/constants.d.ts +11 -0
  35. package/dist/src/constants.d.ts.map +1 -0
  36. package/dist/src/constants.js +16 -0
  37. package/dist/src/constants.js.map +1 -0
  38. package/dist/src/index.d.ts +3 -0
  39. package/dist/src/index.d.ts.map +1 -0
  40. package/dist/src/index.js +59 -0
  41. package/dist/src/index.js.map +1 -0
  42. package/dist/src/prompts/workflows.d.ts +3 -0
  43. package/dist/src/prompts/workflows.d.ts.map +1 -0
  44. package/dist/src/prompts/workflows.js +239 -0
  45. package/dist/src/prompts/workflows.js.map +1 -0
  46. package/dist/src/resources/reference.d.ts +3 -0
  47. package/dist/src/resources/reference.d.ts.map +1 -0
  48. package/dist/src/resources/reference.js +411 -0
  49. package/dist/src/resources/reference.js.map +1 -0
  50. package/dist/src/services/error-reference.d.ts +26 -0
  51. package/dist/src/services/error-reference.d.ts.map +1 -0
  52. package/dist/src/services/error-reference.js +217 -0
  53. package/dist/src/services/error-reference.js.map +1 -0
  54. package/dist/src/services/guardrails.d.ts +11 -0
  55. package/dist/src/services/guardrails.d.ts.map +1 -0
  56. package/dist/src/services/guardrails.js +118 -0
  57. package/dist/src/services/guardrails.js.map +1 -0
  58. package/dist/src/services/mock-provider.d.ts +7 -0
  59. package/dist/src/services/mock-provider.d.ts.map +1 -0
  60. package/dist/src/services/mock-provider.js +324 -0
  61. package/dist/src/services/mock-provider.js.map +1 -0
  62. package/dist/src/services/zowe-async-tasks.d.ts +33 -0
  63. package/dist/src/services/zowe-async-tasks.d.ts.map +1 -0
  64. package/dist/src/services/zowe-async-tasks.js +169 -0
  65. package/dist/src/services/zowe-async-tasks.js.map +1 -0
  66. package/dist/src/services/zowe-executor.d.ts +17 -0
  67. package/dist/src/services/zowe-executor.d.ts.map +1 -0
  68. package/dist/src/services/zowe-executor.js +158 -0
  69. package/dist/src/services/zowe-executor.js.map +1 -0
  70. package/dist/src/services/zowe-options.d.ts +13 -0
  71. package/dist/src/services/zowe-options.d.ts.map +1 -0
  72. package/dist/src/services/zowe-options.js +34 -0
  73. package/dist/src/services/zowe-options.js.map +1 -0
  74. package/dist/src/tools/async-tasks.d.ts +3 -0
  75. package/dist/src/tools/async-tasks.d.ts.map +1 -0
  76. package/dist/src/tools/async-tasks.js +165 -0
  77. package/dist/src/tools/async-tasks.js.map +1 -0
  78. package/dist/src/tools/datasets.d.ts +3 -0
  79. package/dist/src/tools/datasets.d.ts.map +1 -0
  80. package/dist/src/tools/datasets.js +195 -0
  81. package/dist/src/tools/datasets.js.map +1 -0
  82. package/dist/src/tools/errors.d.ts +3 -0
  83. package/dist/src/tools/errors.d.ts.map +1 -0
  84. package/dist/src/tools/errors.js +30 -0
  85. package/dist/src/tools/errors.js.map +1 -0
  86. package/dist/src/tools/jobs.d.ts +3 -0
  87. package/dist/src/tools/jobs.d.ts.map +1 -0
  88. package/dist/src/tools/jobs.js +150 -0
  89. package/dist/src/tools/jobs.js.map +1 -0
  90. package/dist/src/tools/tso.d.ts +3 -0
  91. package/dist/src/tools/tso.d.ts.map +1 -0
  92. package/dist/src/tools/tso.js +55 -0
  93. package/dist/src/tools/tso.js.map +1 -0
  94. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # Zowe MCP Server
2
+
3
+ An MCP (Model Context Protocol) server that wraps Zowe CLI, enabling AI assistants like Claude to interact with z/OS mainframes through natural language.
4
+
5
+ ## What This Does
6
+
7
+ Instead of learning dozens of Zowe CLI commands, developers can ask an AI assistant questions like:
8
+
9
+ - "Show me what datasets I have access to"
10
+ - "Why did the payroll job fail last night?"
11
+ - "Show me the COBOL source for the payroll program"
12
+ - "Help me understand this COBOL application"
13
+
14
+ The MCP server translates these into the right Zowe CLI calls and returns results the AI can explain in plain English.
15
+
16
+ ## Architecture
17
+
18
+ ```arch
19
+ User <-> AI Assistant <-> MCP Protocol <-> This Server <-> Zowe CLI <-> z/OS
20
+ ```
21
+
22
+ ## Features
23
+
24
+ - **17 Tools** for interacting with z/OS (datasets, jobs, uploads, TSO, console commands, async polling)
25
+ - **5 Pre-built Prompts** for common workflows (onboarding, diagnostics, code review)
26
+ - **5 Reference Resources** for z/OS concepts (JCL, COBOL, ABEND codes)
27
+ - **Safety Guardrails** that block destructive commands (DELETE, CANCEL, PURGE)
28
+ - **Mock Mode** for demos and development without a live mainframe
29
+ - **Automatic Error Analysis** that explains ABEND codes and return codes
30
+
31
+ ## Quick Start
32
+
33
+ To develop and customize this MCP view [Development Instructions](./docs/DEV.md)
34
+
35
+ To learn the full command reference for this MCP view [MCP Reference](./docs/REFERENCE.md)
36
+
37
+ To run the end-to-end VSAM guided demo [Demo Workflow](./docs/DEMO.md)
38
+
39
+ ### 1) Install and Build
40
+
41
+ ```bash
42
+ bun install
43
+ bun run build
44
+ ```
45
+
46
+ ### 2) Zowe Setup
47
+
48
+ Use these commands once on the machine running this MCP server:
49
+
50
+ ```bash
51
+ zowe config auto-init --host "Z.SERVER.IP.OR.HOST"
52
+ # Enter port (default is 10443 for Liberty Server)
53
+ # Enter username and password
54
+ # After config is saved, make sure your ~/.zowe/zowe.config.json and selected profile is setup properly
55
+
56
+ # If using APIML Auth Gateway
57
+ zowe auth login apiml
58
+
59
+ # Verify you can connect to your Z Machine
60
+ zowe zosmf check status --rfj
61
+
62
+ # Optional, but recommended if your TSO profile requires account:
63
+ # zowe profiles create tso mytso --account ACCT001
64
+ # You can get your account number via `tsocmd "LISTUSER MY_USER_ID TSO NORACF"`
65
+ ```
66
+
67
+ If `zowe zosmf check status --rfj` fails, fix auth/profile first before starting this server.
68
+
69
+ ### 3) Configure Your MCP Client
70
+
71
+ For Claude Desktop, use `config/mcp.json` as your template and copy the `zowe-mcp-server` entry into:
72
+
73
+ **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
74
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
75
+
76
+ For other MCP clients that accept JSON MCP server definitions, use the same `config/mcp.json`.
77
+
78
+ Codex using `.toml` configs which can be seen in `config/codex.toml`
79
+
80
+ Both templates are preconfigured to launch from npm with:
81
+
82
+ - `command`: `npx`
83
+ - `args`: `["-y", "@gestell/zowe-mcp"]`
84
+
85
+ ## Example Conversations
86
+
87
+ ### Exploring Datasets
88
+ >
89
+ > **User**: Use the zowe-mcp-server tool and show me what datasets I have under DEVUSR1
90
+ >
91
+ > **AI**: *Uses zowe_list_datasets* - I found 8 datasets under DEVUSR1. You have COBOL source libraries, JCL, copybooks, and data files...
92
+
93
+ ### Diagnosing a Job Failure
94
+ >
95
+ > **User**: Use the zowe-mcp-server tool and look at job JOB00245 failed. Can you tell me why?
96
+ >
97
+ > **AI**: *Uses zowe_get_job_status and zowe_get_job_output* - This job failed with ABEND S0C7, which is a Data Exception. This typically means a packed decimal field contains invalid data. Looking at the spool output, I see the error occurred in STEP020...
98
+
99
+ ### Code Understanding
100
+ >
101
+ > **User**: Use the zowe-mcp-server tool and help me understand the PAYROLL program
102
+ >
103
+ > **AI**: *Uses zowe_read_dataset* - This COBOL program processes payroll data. It reads an indexed employee master file and calculates weekly pay including tax deductions. Let me walk you through the main sections...
104
+
105
+ ## License
106
+
107
+ MIT
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import "./src/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAEA,OAAO,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import "./src/index.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAEA,OAAO,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './prompts/workflows.js';
2
+ export * from './tools/datasets.js';
3
+ export * from './tools/errors.js';
4
+ export * from './tools/jobs.js';
5
+ export * from './tools/tso.js';
6
+ export * from './tools/async-tasks.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './prompts/workflows.js';
2
+ export * from './tools/datasets.js';
3
+ export * from './tools/errors.js';
4
+ export * from './tools/jobs.js';
5
+ export * from './tools/tso.js';
6
+ export * from './tools/async-tasks.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const onboardingArgsSchema: {
3
+ /** High-level qualifier (HLQ) to explore for onboarding (for example: `IBMUSER` or `DEVUSR1`). */
4
+ hlq: z.ZodOptional<z.ZodString>;
5
+ };
6
+ export declare const diagnoseJobFailureArgsSchema: {
7
+ /** JES job ID to diagnose (for example: `JOB00245` or `TSU00089`). */
8
+ job_id: z.ZodString;
9
+ };
10
+ export declare const exploreCodebaseArgsSchema: {
11
+ /** HLQ that contains COBOL/JCL/copybook libraries for the application. */
12
+ hlq: z.ZodString;
13
+ /** Optional program/member name to use as the first entry point for analysis. */
14
+ program: z.ZodOptional<z.ZodString>;
15
+ };
16
+ export declare const codeReviewArgsSchema: {
17
+ /** Dataset(member) containing source code to review (for example: `IBMUSER.COBOL(PAYROLL)`). */
18
+ dataset: z.ZodString;
19
+ };
20
+ export declare const dailyOpsCheckArgsSchema: {
21
+ /** Owner/userid filter for the operational job health check. */
22
+ owner: z.ZodOptional<z.ZodString>;
23
+ };
24
+ //# sourceMappingURL=workflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../schema/prompts/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,oBAAoB;IAC/B,kGAAkG;;CAKnG,CAAA;AAED,eAAO,MAAM,4BAA4B;IACvC,sEAAsE;;CAEvE,CAAA;AAED,eAAO,MAAM,yBAAyB;IACpC,0EAA0E;;IAE1E,iFAAiF;;CAElF,CAAA;AAED,eAAO,MAAM,oBAAoB;IAC/B,gGAAgG;;CAIjG,CAAA;AAED,eAAO,MAAM,uBAAuB;IAClC,gEAAgE;;CAEjE,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export const onboardingArgsSchema = {
3
+ /** High-level qualifier (HLQ) to explore for onboarding (for example: `IBMUSER` or `DEVUSR1`). */
4
+ hlq: z
5
+ .string()
6
+ .optional()
7
+ .describe('High-level qualifier (user ID or project prefix) to explore, e.g., IBMUSER')
8
+ };
9
+ export const diagnoseJobFailureArgsSchema = {
10
+ /** JES job ID to diagnose (for example: `JOB00245` or `TSU00089`). */
11
+ job_id: z.string().describe('The job ID to diagnose (e.g., JOB00245)')
12
+ };
13
+ export const exploreCodebaseArgsSchema = {
14
+ /** HLQ that contains COBOL/JCL/copybook libraries for the application. */
15
+ hlq: z.string().describe('High-level qualifier containing the application code'),
16
+ /** Optional program/member name to use as the first entry point for analysis. */
17
+ program: z.string().optional().describe('Specific program name to start with')
18
+ };
19
+ export const codeReviewArgsSchema = {
20
+ /** Dataset(member) containing source code to review (for example: `IBMUSER.COBOL(PAYROLL)`). */
21
+ dataset: z
22
+ .string()
23
+ .describe('Dataset(member) containing the code to review, e.g., IBMUSER.COBOL(PAYROLL)')
24
+ };
25
+ export const dailyOpsCheckArgsSchema = {
26
+ /** Owner/userid filter for the operational job health check. */
27
+ owner: z.string().optional().describe('Job owner to check (user ID or * for all)')
28
+ };
29
+ //# sourceMappingURL=workflows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../schema/prompts/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,kGAAkG;IAClG,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4EAA4E,CAAC;CAC1F,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,sEAAsE;IACtE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;CACvE,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,0EAA0E;IAC1E,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;IAChF,iFAAiF;IACjF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CAC/E,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,gGAAgG;IAChG,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CAAC,6EAA6E,CAAC;CAC3F,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gEAAgE;IAChE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CACnF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const getAsyncTaskInputSchema: {
3
+ /** Task identifier returned by any async-capable `zowe_*` tool. */
4
+ task_id: z.ZodString;
5
+ };
6
+ export declare const listAsyncTasksInputSchema: {
7
+ /** Optional status filter so callers can list only running or only completed tasks. */
8
+ status: z.ZodOptional<z.ZodEnum<["running", "completed"]>>;
9
+ };
10
+ export declare const waitAsyncTaskInputSchema: {
11
+ /** Task identifier returned by any async-capable `zowe_*` tool. */
12
+ task_id: z.ZodString;
13
+ /** Maximum time in milliseconds to wait during this single call before returning. */
14
+ max_wait_ms: z.ZodOptional<z.ZodNumber>;
15
+ /** Poll interval in milliseconds between task status checks during this call. */
16
+ poll_interval_ms: z.ZodOptional<z.ZodNumber>;
17
+ };
18
+ //# sourceMappingURL=async-tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-tasks.d.ts","sourceRoot":"","sources":["../../../schema/tools/async-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,uBAAuB;IAClC,mEAAmE;;CAEpE,CAAA;AAED,eAAO,MAAM,yBAAyB;IACpC,uFAAuF;;CAExF,CAAA;AAED,eAAO,MAAM,wBAAwB;IACnC,mEAAmE;;IAGnE,qFAAqF;;IAGrF,iFAAiF;;CAElF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export const getAsyncTaskInputSchema = {
3
+ /** Task identifier returned by any async-capable `zowe_*` tool. */
4
+ task_id: z.string().min(1).describe('Async task ID returned by another zowe_* tool')
5
+ };
6
+ export const listAsyncTasksInputSchema = {
7
+ /** Optional status filter so callers can list only running or only completed tasks. */
8
+ status: z.enum(['running', 'completed']).optional().describe('Optional task status filter')
9
+ };
10
+ export const waitAsyncTaskInputSchema = {
11
+ /** Task identifier returned by any async-capable `zowe_*` tool. */
12
+ task_id: z.string().min(1).describe('Async task ID returned by another zowe_* tool'),
13
+ /** Maximum time in milliseconds to wait during this single call before returning. */
14
+ max_wait_ms: z.number().int().positive().optional().describe('Maximum wait time for this poll call in milliseconds (default 55000)'),
15
+ /** Poll interval in milliseconds between task status checks during this call. */
16
+ poll_interval_ms: z.number().int().positive().optional().describe('Polling interval in milliseconds while waiting (default 2000)')
17
+ };
18
+ //# sourceMappingURL=async-tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-tasks.js","sourceRoot":"","sources":["../../../schema/tools/async-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,mEAAmE;IACnE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC;CACrF,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,uFAAuF;IACvF,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CAC5F,CAAA;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,mEAAmE;IACnE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAEpF,qFAAqF;IACrF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sEAAsE,CAAC;IAEpI,iFAAiF;IACjF,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;CACnI,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ export declare const listDatasetsInputSchema: {
3
+ /** Dataset name pattern to search (for example: `IBMUSER.*` or `PROD.APP.*`). */
4
+ pattern: z.ZodString;
5
+ /** Optional z/OSMF profile override for this single call. */
6
+ zosmf_profile: z.ZodOptional<z.ZodString>;
7
+ /** Optional base profile override for this single call. */
8
+ base_profile: z.ZodOptional<z.ZodString>;
9
+ };
10
+ export declare const listMembersInputSchema: {
11
+ /** Fully qualified PDS/PDSE dataset name (for example: `IBMUSER.JCL`). */
12
+ dataset: z.ZodString;
13
+ /** Optional z/OSMF profile override for this single call. */
14
+ zosmf_profile: z.ZodOptional<z.ZodString>;
15
+ /** Optional base profile override for this single call. */
16
+ base_profile: z.ZodOptional<z.ZodString>;
17
+ };
18
+ export declare const readDatasetInputSchema: {
19
+ /** Dataset or member to read (for example: `IBMUSER.JCL(DEL)` or `IBMUSER.DATA.FILE`). */
20
+ dataset: z.ZodString;
21
+ /** Optional z/OSMF profile override for this single call. */
22
+ zosmf_profile: z.ZodOptional<z.ZodString>;
23
+ /** Optional base profile override for this single call. */
24
+ base_profile: z.ZodOptional<z.ZodString>;
25
+ };
26
+ export declare const searchDatasetsInputSchema: {
27
+ /** Dataset or member to scan for the search text. */
28
+ dataset: z.ZodString;
29
+ /** Case-insensitive text to find in the dataset content. */
30
+ pattern: z.ZodString;
31
+ /** Optional z/OSMF profile override for this single call. */
32
+ zosmf_profile: z.ZodOptional<z.ZodString>;
33
+ /** Optional base profile override for this single call. */
34
+ base_profile: z.ZodOptional<z.ZodString>;
35
+ };
36
+ export declare const uploadFileToDatasetInputSchema: {
37
+ /** Workspace-local file path to upload (for example: `demo/source/10-view/view.jcl`). */
38
+ local_file: z.ZodString;
39
+ /** Target z/OS dataset or member (for example: `DEMO.SAMPLE.JCL(VIEW)`). */
40
+ dataset: z.ZodString;
41
+ /** Optional z/OSMF profile override for this single call. */
42
+ zosmf_profile: z.ZodOptional<z.ZodString>;
43
+ /** Optional base profile override for this single call. */
44
+ base_profile: z.ZodOptional<z.ZodString>;
45
+ };
46
+ export declare const uploadDirectoryToPdsInputSchema: {
47
+ /** Workspace-local directory path to upload (each file becomes a member). */
48
+ local_dir: z.ZodString;
49
+ /** Target partitioned dataset name (for example: `DEMO.SAMPLE.COPYLIB`). */
50
+ dataset: z.ZodString;
51
+ /** Optional z/OSMF profile override for this single call. */
52
+ zosmf_profile: z.ZodOptional<z.ZodString>;
53
+ /** Optional base profile override for this single call. */
54
+ base_profile: z.ZodOptional<z.ZodString>;
55
+ };
56
+ //# sourceMappingURL=datasets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../../schema/tools/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,uBAAuB;IAClC,iFAAiF;;IAEjF,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,sBAAsB;IACjC,0EAA0E;;IAE1E,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,sBAAsB;IACjC,0FAA0F;;IAE1F,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,yBAAyB;IACpC,qDAAqD;;IAErD,4DAA4D;;IAE5D,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,8BAA8B;IACzC,yFAAyF;;IAEzF,4EAA4E;;IAE5E,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,+BAA+B;IAC1C,6EAA6E;;IAE7E,4EAA4E;;IAE5E,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { z } from 'zod';
2
+ export const listDatasetsInputSchema = {
3
+ /** Dataset name pattern to search (for example: `IBMUSER.*` or `PROD.APP.*`). */
4
+ pattern: z.string().describe('Dataset name pattern (e.g., DEVUSR1 or PROD.DATA.*)'),
5
+ /** Optional z/OSMF profile override for this single call. */
6
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
7
+ /** Optional base profile override for this single call. */
8
+ base_profile: z.string().optional().describe('Optional base profile override')
9
+ };
10
+ export const listMembersInputSchema = {
11
+ /** Fully qualified PDS/PDSE dataset name (for example: `IBMUSER.JCL`). */
12
+ dataset: z.string().describe('Fully qualified PDS/PDSE name (e.g., DEVUSR1.COBOL)'),
13
+ /** Optional z/OSMF profile override for this single call. */
14
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
15
+ /** Optional base profile override for this single call. */
16
+ base_profile: z.string().optional().describe('Optional base profile override')
17
+ };
18
+ export const readDatasetInputSchema = {
19
+ /** Dataset or member to read (for example: `IBMUSER.JCL(DEL)` or `IBMUSER.DATA.FILE`). */
20
+ dataset: z.string().describe('Dataset or dataset(member) to read, e.g., DEVUSR1.COBOL(PAYROLL)'),
21
+ /** Optional z/OSMF profile override for this single call. */
22
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
23
+ /** Optional base profile override for this single call. */
24
+ base_profile: z.string().optional().describe('Optional base profile override')
25
+ };
26
+ export const searchDatasetsInputSchema = {
27
+ /** Dataset or member to scan for the search text. */
28
+ dataset: z.string().describe('Dataset or dataset(member) to search'),
29
+ /** Case-insensitive text to find in the dataset content. */
30
+ pattern: z.string().describe('Text pattern to search for'),
31
+ /** Optional z/OSMF profile override for this single call. */
32
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
33
+ /** Optional base profile override for this single call. */
34
+ base_profile: z.string().optional().describe('Optional base profile override')
35
+ };
36
+ export const uploadFileToDatasetInputSchema = {
37
+ /** Workspace-local file path to upload (for example: `demo/source/10-view/view.jcl`). */
38
+ local_file: z.string().describe('Local file path to upload'),
39
+ /** Target z/OS dataset or member (for example: `DEMO.SAMPLE.JCL(VIEW)`). */
40
+ dataset: z.string().describe('Target dataset or dataset(member)'),
41
+ /** Optional z/OSMF profile override for this single call. */
42
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
43
+ /** Optional base profile override for this single call. */
44
+ base_profile: z.string().optional().describe('Optional base profile override')
45
+ };
46
+ export const uploadDirectoryToPdsInputSchema = {
47
+ /** Workspace-local directory path to upload (each file becomes a member). */
48
+ local_dir: z.string().describe('Local directory path to upload'),
49
+ /** Target partitioned dataset name (for example: `DEMO.SAMPLE.COPYLIB`). */
50
+ dataset: z.string().describe('Target PDS dataset name'),
51
+ /** Optional z/OSMF profile override for this single call. */
52
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
53
+ /** Optional base profile override for this single call. */
54
+ base_profile: z.string().optional().describe('Optional base profile override')
55
+ };
56
+ //# sourceMappingURL=datasets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../../schema/tools/datasets.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export declare const explainErrorInputSchema: {
3
+ /** Error code or return code to explain (for example: `S0C7`, `ABEND S013`, `CC 0012`). */
4
+ code: z.ZodString;
5
+ };
6
+ /** This tool takes no input parameters. */
7
+ export declare const listErrorCodesInputSchema: {};
8
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../schema/tools/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,uBAAuB;IAClC,2FAA2F;;CAE5F,CAAA;AAED,2CAA2C;AAC3C,eAAO,MAAM,yBAAyB,IAAK,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export const explainErrorInputSchema = {
3
+ /** Error code or return code to explain (for example: `S0C7`, `ABEND S013`, `CC 0012`). */
4
+ code: z.string().describe('Error code to explain (e.g., S0C7, CC 0012, ABEND S013)')
5
+ };
6
+ /** This tool takes no input parameters. */
7
+ export const listErrorCodesInputSchema = {};
8
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../schema/tools/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,2FAA2F;IAC3F,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;CACrF,CAAA;AAED,2CAA2C;AAC3C,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAA"}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ export declare const listJobsInputSchema: {
3
+ /** Optional JES owner filter (for example: `IBMUSER`). */
4
+ owner: z.ZodOptional<z.ZodString>;
5
+ /** Optional job name prefix filter (for example: `PAYROLL`). Do not include `*`; wildcard suffixes are normalized automatically. */
6
+ prefix: z.ZodOptional<z.ZodString>;
7
+ /** Optional local status filter to narrow the result set. */
8
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "OUTPUT", "INPUT"]>>;
9
+ /** Optional z/OSMF profile override for this single call. */
10
+ zosmf_profile: z.ZodOptional<z.ZodString>;
11
+ /** Optional base profile override for this single call. */
12
+ base_profile: z.ZodOptional<z.ZodString>;
13
+ };
14
+ export declare const getJobStatusInputSchema: {
15
+ /** Job ID to inspect (for example: `JOB00142`, `TSU00089`). */
16
+ job_id: z.ZodString;
17
+ /** Optional z/OSMF profile override for this single call. */
18
+ zosmf_profile: z.ZodOptional<z.ZodString>;
19
+ /** Optional base profile override for this single call. */
20
+ base_profile: z.ZodOptional<z.ZodString>;
21
+ };
22
+ export declare const getJobOutputInputSchema: {
23
+ /** Job ID to fetch spool output for (for example: `JOB00142`). */
24
+ job_id: z.ZodString;
25
+ /** Optional z/OSMF profile override for this single call. */
26
+ zosmf_profile: z.ZodOptional<z.ZodString>;
27
+ /** Optional base profile override for this single call. */
28
+ base_profile: z.ZodOptional<z.ZodString>;
29
+ };
30
+ export declare const submitJobInputSchema: {
31
+ /** JCL dataset/member to submit (for example: `IBMUSER.JCL(MYJOB)`). */
32
+ dataset: z.ZodString;
33
+ /** Optional z/OSMF profile override for this single call. */
34
+ zosmf_profile: z.ZodOptional<z.ZodString>;
35
+ /** Optional base profile override for this single call. */
36
+ base_profile: z.ZodOptional<z.ZodString>;
37
+ };
38
+ //# sourceMappingURL=jobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../schema/tools/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;IAC9B,0DAA0D;;IAE1D,oIAAoI;;IAEpI,6DAA6D;;IAE7D,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,uBAAuB;IAClC,+DAA+D;;IAE/D,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,uBAAuB;IAClC,kEAAkE;;IAElE,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,oBAAoB;IAC/B,wEAAwE;;IAIxE,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA"}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ export const listJobsInputSchema = {
3
+ /** Optional JES owner filter (for example: `IBMUSER`). */
4
+ owner: z.string().optional().describe('Job owner userid'),
5
+ /** Optional job name prefix filter (for example: `PAYROLL`). Do not include `*`; wildcard suffixes are normalized automatically. */
6
+ prefix: z.string().optional().describe('Job name prefix (e.g., PAYROLL)'),
7
+ /** Optional local status filter to narrow the result set. */
8
+ status: z.enum(['ACTIVE', 'OUTPUT', 'INPUT']).optional().describe('Job status filter'),
9
+ /** Optional z/OSMF profile override for this single call. */
10
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
11
+ /** Optional base profile override for this single call. */
12
+ base_profile: z.string().optional().describe('Optional base profile override')
13
+ };
14
+ export const getJobStatusInputSchema = {
15
+ /** Job ID to inspect (for example: `JOB00142`, `TSU00089`). */
16
+ job_id: z.string().describe('Job ID (e.g., JOB00142)'),
17
+ /** Optional z/OSMF profile override for this single call. */
18
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
19
+ /** Optional base profile override for this single call. */
20
+ base_profile: z.string().optional().describe('Optional base profile override')
21
+ };
22
+ export const getJobOutputInputSchema = {
23
+ /** Job ID to fetch spool output for (for example: `JOB00142`). */
24
+ job_id: z.string().describe('Job ID (e.g., JOB00142)'),
25
+ /** Optional z/OSMF profile override for this single call. */
26
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
27
+ /** Optional base profile override for this single call. */
28
+ base_profile: z.string().optional().describe('Optional base profile override')
29
+ };
30
+ export const submitJobInputSchema = {
31
+ /** JCL dataset/member to submit (for example: `IBMUSER.JCL(MYJOB)`). */
32
+ dataset: z
33
+ .string()
34
+ .describe('Fully qualified dataset(member) to submit, e.g., DEVUSR1.JCL(PAYROLL1)'),
35
+ /** Optional z/OSMF profile override for this single call. */
36
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
37
+ /** Optional base profile override for this single call. */
38
+ base_profile: z.string().optional().describe('Optional base profile override')
39
+ };
40
+ //# sourceMappingURL=jobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../schema/tools/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,0DAA0D;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACzD,oIAAoI;IACpI,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACzE,6DAA6D;IAC7D,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACtF,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,+DAA+D;IAC/D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtD,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,kEAAkE;IAClE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtD,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,wEAAwE;IACxE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CAAC,wEAAwE,CAAC;IACrF,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const tsoCommandInputSchema: {
3
+ /** TSO command text exactly as you would type it in TSO (for example: `STATUS`). */
4
+ command: z.ZodString;
5
+ /** Optional TSO account override for environments that require `--account`. */
6
+ account: z.ZodOptional<z.ZodString>;
7
+ /** Optional TSO profile override for this single call. */
8
+ tso_profile: z.ZodOptional<z.ZodString>;
9
+ /** Optional z/OSMF profile override for this single call. */
10
+ zosmf_profile: z.ZodOptional<z.ZodString>;
11
+ /** Optional base profile override for this single call. */
12
+ base_profile: z.ZodOptional<z.ZodString>;
13
+ };
14
+ export declare const consoleCommandInputSchema: {
15
+ /** MVS console command text (for example: `D A`). */
16
+ command: z.ZodString;
17
+ /** Optional z/OSMF profile override for this single call. */
18
+ zosmf_profile: z.ZodOptional<z.ZodString>;
19
+ /** Optional base profile override for this single call. */
20
+ base_profile: z.ZodOptional<z.ZodString>;
21
+ };
22
+ //# sourceMappingURL=tso.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tso.d.ts","sourceRoot":"","sources":["../../../schema/tools/tso.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,qBAAqB;IAChC,oFAAoF;;IAEpF,+EAA+E;;IAE/E,0DAA0D;;IAE1D,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA;AAED,eAAO,MAAM,yBAAyB;IACpC,qDAAqD;;IAErD,6DAA6D;;IAE7D,2DAA2D;;CAE5D,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export const tsoCommandInputSchema = {
3
+ /** TSO command text exactly as you would type it in TSO (for example: `STATUS`). */
4
+ command: z.string().min(1).describe('TSO command to execute'),
5
+ /** Optional TSO account override for environments that require `--account`. */
6
+ account: z.string().optional().describe('TSO/E account (required in some environments)'),
7
+ /** Optional TSO profile override for this single call. */
8
+ tso_profile: z.string().optional().describe('Optional tso profile override'),
9
+ /** Optional z/OSMF profile override for this single call. */
10
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
11
+ /** Optional base profile override for this single call. */
12
+ base_profile: z.string().optional().describe('Optional base profile override')
13
+ };
14
+ export const consoleCommandInputSchema = {
15
+ /** MVS console command text (for example: `D A`). */
16
+ command: z.string().min(1).describe('MVS console command to execute'),
17
+ /** Optional z/OSMF profile override for this single call. */
18
+ zosmf_profile: z.string().optional().describe('Optional zosmf profile override'),
19
+ /** Optional base profile override for this single call. */
20
+ base_profile: z.string().optional().describe('Optional base profile override')
21
+ };
22
+ //# sourceMappingURL=tso.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tso.js","sourceRoot":"","sources":["../../../schema/tools/tso.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,oFAAoF;IACpF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC7D,+EAA+E;IAC/E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IACxF,0DAA0D;IAC1D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,qDAAqD;IACrD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACrE,6DAA6D;IAC7D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAChF,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC/E,CAAA"}
@@ -0,0 +1,11 @@
1
+ export declare const SERVER_NAME = "zowe-mcp-server";
2
+ export declare const SERVER_VERSION = "0.1.0";
3
+ export declare const MOCK_MODE: boolean;
4
+ export declare const ZOWE_PROFILE: string;
5
+ export declare enum CommandSafety {
6
+ SAFE = "safe",// Read-only, no side effects
7
+ CAUTIOUS = "cautious",// Has side effects, needs confirmation context
8
+ BLOCKED = "blocked"
9
+ }
10
+ export declare const CHARACTER_LIMIT = 50000;
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,oBAAoB,CAAA;AAC5C,eAAO,MAAM,cAAc,UAAU,CAAA;AAGrC,eAAO,MAAM,SAAS,SAA4E,CAAA;AAClG,eAAO,MAAM,YAAY,QAAwC,CAAA;AAGjE,oBAAY,aAAa;IACvB,IAAI,SAAS,CAAY,6BAA6B;IACtD,QAAQ,aAAa,CAAI,+CAA+C;IACxE,OAAO,YAAY;CACpB;AAGD,eAAO,MAAM,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,16 @@
1
+ // Server configuration
2
+ export const SERVER_NAME = 'zowe-mcp-server';
3
+ export const SERVER_VERSION = '0.1.0';
4
+ // Environment
5
+ export const MOCK_MODE = process.env.ZOWE_MCP_MOCK === 'true' || process.env.ZOWE_MCP_MOCK === '1';
6
+ export const ZOWE_PROFILE = process.env.ZOWE_PROFILE || 'default';
7
+ // Guardrail classifications
8
+ export var CommandSafety;
9
+ (function (CommandSafety) {
10
+ CommandSafety["SAFE"] = "safe";
11
+ CommandSafety["CAUTIOUS"] = "cautious";
12
+ CommandSafety["BLOCKED"] = "blocked"; // Destructive, should not be executed by AI
13
+ })(CommandSafety || (CommandSafety = {}));
14
+ // Character limits for responses
15
+ export const CHARACTER_LIMIT = 50000;
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAA;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAA;AAErC,cAAc;AACd,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,GAAG,CAAA;AAClG,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,SAAS,CAAA;AAEjE,4BAA4B;AAC5B,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,oCAAmB,CAAA,CAAM,4CAA4C;AACvE,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,iCAAiC;AACjC,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAA"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}