@mcp-consultant-tools/azure-sql 28.0.0-beta.7 → 29.0.0-beta.1

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 (86) hide show
  1. package/build/cli/commands/connection-commands.d.ts +7 -0
  2. package/build/cli/commands/connection-commands.d.ts.map +1 -0
  3. package/build/cli/commands/connection-commands.js +64 -0
  4. package/build/cli/commands/connection-commands.js.map +1 -0
  5. package/build/cli/commands/crud-commands.d.ts +7 -0
  6. package/build/cli/commands/crud-commands.d.ts.map +1 -0
  7. package/build/cli/commands/crud-commands.js +63 -0
  8. package/build/cli/commands/crud-commands.js.map +1 -0
  9. package/build/cli/commands/index.d.ts +13 -0
  10. package/build/cli/commands/index.d.ts.map +1 -0
  11. package/build/cli/commands/index.js +24 -0
  12. package/build/cli/commands/index.js.map +1 -0
  13. package/build/cli/commands/query-commands.d.ts +7 -0
  14. package/build/cli/commands/query-commands.d.ts.map +1 -0
  15. package/build/cli/commands/query-commands.js +149 -0
  16. package/build/cli/commands/query-commands.js.map +1 -0
  17. package/build/cli/commands/sproc-commands.d.ts +7 -0
  18. package/build/cli/commands/sproc-commands.d.ts.map +1 -0
  19. package/build/cli/commands/sproc-commands.js +87 -0
  20. package/build/cli/commands/sproc-commands.js.map +1 -0
  21. package/build/cli/commands/unrestricted-commands.d.ts +7 -0
  22. package/build/cli/commands/unrestricted-commands.d.ts.map +1 -0
  23. package/build/cli/commands/unrestricted-commands.js +31 -0
  24. package/build/cli/commands/unrestricted-commands.js.map +1 -0
  25. package/build/cli/commands/view-commands.d.ts +7 -0
  26. package/build/cli/commands/view-commands.d.ts.map +1 -0
  27. package/build/cli/commands/view-commands.js +66 -0
  28. package/build/cli/commands/view-commands.js.map +1 -0
  29. package/build/cli/output.d.ts +11 -0
  30. package/build/cli/output.d.ts.map +1 -0
  31. package/build/cli/output.js +10 -0
  32. package/build/cli/output.js.map +1 -0
  33. package/build/cli.d.ts +9 -0
  34. package/build/cli.d.ts.map +1 -0
  35. package/build/cli.js +27 -0
  36. package/build/cli.js.map +1 -0
  37. package/build/context-factory.d.ts +10 -0
  38. package/build/context-factory.d.ts.map +1 -0
  39. package/build/context-factory.js +105 -0
  40. package/build/context-factory.js.map +1 -0
  41. package/build/index.d.ts +1 -0
  42. package/build/index.d.ts.map +1 -1
  43. package/build/index.js +45 -0
  44. package/build/index.js.map +1 -1
  45. package/build/services/connection-service.d.ts +1 -2
  46. package/build/services/connection-service.d.ts.map +1 -1
  47. package/build/services/connection-service.js +1 -3
  48. package/build/services/connection-service.js.map +1 -1
  49. package/build/services/index.d.ts +2 -0
  50. package/build/services/index.d.ts.map +1 -1
  51. package/build/services/index.js +1 -0
  52. package/build/services/index.js.map +1 -1
  53. package/build/services/query-service.d.ts.map +1 -1
  54. package/build/services/query-service.js +7 -7
  55. package/build/services/query-service.js.map +1 -1
  56. package/build/services/write-service.d.ts +109 -0
  57. package/build/services/write-service.d.ts.map +1 -0
  58. package/build/services/write-service.js +735 -0
  59. package/build/services/write-service.js.map +1 -0
  60. package/build/tool-examples.d.ts +32 -0
  61. package/build/tool-examples.d.ts.map +1 -1
  62. package/build/tool-examples.js +33 -0
  63. package/build/tool-examples.js.map +1 -1
  64. package/build/tools/crud-tools.d.ts +3 -0
  65. package/build/tools/crud-tools.d.ts.map +1 -0
  66. package/build/tools/crud-tools.js +115 -0
  67. package/build/tools/crud-tools.js.map +1 -0
  68. package/build/tools/index.d.ts +4 -0
  69. package/build/tools/index.d.ts.map +1 -1
  70. package/build/tools/index.js +12 -0
  71. package/build/tools/index.js.map +1 -1
  72. package/build/tools/sproc-tools.d.ts +3 -0
  73. package/build/tools/sproc-tools.d.ts.map +1 -0
  74. package/build/tools/sproc-tools.js +172 -0
  75. package/build/tools/sproc-tools.js.map +1 -0
  76. package/build/tools/unrestricted-tools.d.ts +7 -0
  77. package/build/tools/unrestricted-tools.d.ts.map +1 -0
  78. package/build/tools/unrestricted-tools.js +63 -0
  79. package/build/tools/unrestricted-tools.js.map +1 -0
  80. package/build/tools/view-tools.d.ts +3 -0
  81. package/build/tools/view-tools.d.ts.map +1 -0
  82. package/build/tools/view-tools.js +121 -0
  83. package/build/tools/view-tools.js.map +1 -0
  84. package/build/types.d.ts +10 -0
  85. package/build/types.d.ts.map +1 -1
  86. package/package.json +6 -4
@@ -0,0 +1,121 @@
1
+ import { z } from 'zod';
2
+ import { descWithExamples, VIEW_BODY_EXAMPLES, SCHEMA_NAME_EXAMPLES, VIEW_FILE_PATH_EXAMPLES } from '../tool-examples.js';
3
+ /**
4
+ * Helper to build "defaults used" message for tool responses.
5
+ */
6
+ function buildDefaultsUsedMessage(providedServerId, resolvedServerId, providedDatabase, resolvedDatabase) {
7
+ const defaultsUsed = [];
8
+ if (!providedServerId)
9
+ defaultsUsed.push(`server='${resolvedServerId}'`);
10
+ if (resolvedDatabase !== undefined && !providedDatabase)
11
+ defaultsUsed.push(`database='${resolvedDatabase}'`);
12
+ if (defaultsUsed.length > 0) {
13
+ return `\n\n\u2139\uFE0F Used defaults: ${defaultsUsed.join(', ')}`;
14
+ }
15
+ return '';
16
+ }
17
+ export function registerViewTools(server, ctx) {
18
+ server.tool("sql-manage-view", "Create or update a SQL view using CREATE OR ALTER VIEW. Requires SQL_ENABLE_VIEW_MANAGE=true.", {
19
+ schemaName: z.string().describe(descWithExamples("Schema name for the view", SCHEMA_NAME_EXAMPLES)),
20
+ viewName: z.string().describe("Name of the view to create or update"),
21
+ selectBody: z.string().describe(descWithExamples("The SELECT statement that defines the view body", VIEW_BODY_EXAMPLES)),
22
+ serverId: z.string().optional().describe("\u26A0\uFE0F OMIT to use default server. DO NOT GUESS."),
23
+ database: z.string().optional().describe("\u26A0\uFE0F OMIT to use default database. DO NOT GUESS."),
24
+ }, async ({ schemaName, viewName, selectBody, serverId, database }) => {
25
+ try {
26
+ ctx.checkViewManageEnabled();
27
+ const resolvedServerId = ctx.connection.resolveServerId(serverId);
28
+ const resolvedDatabase = ctx.connection.resolveDatabase(resolvedServerId, database);
29
+ const result = await ctx.write.manageView(resolvedServerId, resolvedDatabase, schemaName, viewName, selectBody);
30
+ const defaultsMsg = buildDefaultsUsedMessage(serverId, resolvedServerId, database, resolvedDatabase);
31
+ return {
32
+ content: [
33
+ {
34
+ type: "text",
35
+ text: JSON.stringify(result, null, 2) + defaultsMsg,
36
+ },
37
+ ],
38
+ };
39
+ }
40
+ catch (error) {
41
+ return {
42
+ content: [
43
+ {
44
+ type: "text",
45
+ text: `Error managing view: ${error.message}`,
46
+ },
47
+ ],
48
+ isError: true,
49
+ };
50
+ }
51
+ });
52
+ server.tool("sql-deploy-view-file", "Deploy a SQL view from a local .sql file. Reads the file and executes its contents as-is. " +
53
+ "The file must contain a complete CREATE OR ALTER VIEW statement. " +
54
+ "Use this instead of sql-manage-view when you have the view in a local file to preserve exact formatting and comments. " +
55
+ "Requires SQL_ENABLE_VIEW_MANAGE=true.", {
56
+ filePath: z.string().describe(descWithExamples("Path to a local .sql file containing a CREATE OR ALTER VIEW statement. Supports absolute and relative paths.", VIEW_FILE_PATH_EXAMPLES)),
57
+ serverId: z.string().optional().describe("\u26A0\uFE0F OMIT to use default server. DO NOT GUESS."),
58
+ database: z.string().optional().describe("\u26A0\uFE0F OMIT to use default database. DO NOT GUESS."),
59
+ }, async ({ filePath, serverId, database }) => {
60
+ try {
61
+ ctx.checkViewManageEnabled();
62
+ const resolvedServerId = ctx.connection.resolveServerId(serverId);
63
+ const resolvedDatabase = ctx.connection.resolveDatabase(resolvedServerId, database);
64
+ const result = await ctx.write.deployViewFromFile(resolvedServerId, resolvedDatabase, filePath);
65
+ const defaultsMsg = buildDefaultsUsedMessage(serverId, resolvedServerId, database, resolvedDatabase);
66
+ return {
67
+ content: [
68
+ {
69
+ type: "text",
70
+ text: JSON.stringify(result, null, 2) + defaultsMsg,
71
+ },
72
+ ],
73
+ };
74
+ }
75
+ catch (error) {
76
+ return {
77
+ content: [
78
+ {
79
+ type: "text",
80
+ text: `Error deploying view from file: ${error.message}`,
81
+ },
82
+ ],
83
+ isError: true,
84
+ };
85
+ }
86
+ });
87
+ server.tool("sql-drop-view", "Drop a SQL view using DROP VIEW IF EXISTS. Requires SQL_ENABLE_VIEW_DROP=true.", {
88
+ schemaName: z.string().describe(descWithExamples("Schema name for the view", SCHEMA_NAME_EXAMPLES)),
89
+ viewName: z.string().describe("Name of the view to drop"),
90
+ serverId: z.string().optional().describe("\u26A0\uFE0F OMIT to use default server. DO NOT GUESS."),
91
+ database: z.string().optional().describe("\u26A0\uFE0F OMIT to use default database. DO NOT GUESS."),
92
+ }, async ({ schemaName, viewName, serverId, database }) => {
93
+ try {
94
+ ctx.checkViewDropEnabled();
95
+ const resolvedServerId = ctx.connection.resolveServerId(serverId);
96
+ const resolvedDatabase = ctx.connection.resolveDatabase(resolvedServerId, database);
97
+ const result = await ctx.write.dropView(resolvedServerId, resolvedDatabase, schemaName, viewName);
98
+ const defaultsMsg = buildDefaultsUsedMessage(serverId, resolvedServerId, database, resolvedDatabase);
99
+ return {
100
+ content: [
101
+ {
102
+ type: "text",
103
+ text: JSON.stringify(result, null, 2) + defaultsMsg,
104
+ },
105
+ ],
106
+ };
107
+ }
108
+ catch (error) {
109
+ return {
110
+ content: [
111
+ {
112
+ type: "text",
113
+ text: `Error dropping view: ${error.message}`,
114
+ },
115
+ ],
116
+ isError: true,
117
+ };
118
+ }
119
+ });
120
+ }
121
+ //# sourceMappingURL=view-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-tools.js","sourceRoot":"","sources":["../../src/tools/view-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE1H;;GAEG;AACH,SAAS,wBAAwB,CAC/B,gBAAoC,EACpC,gBAAwB,EACxB,gBAAqC,EACrC,gBAAyB;IAEzB,MAAM,YA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AC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;KACrG,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAkF,EAAE,EAAE;QACrI,IAAI,CAAC;YACH,GAAG,CAAC,oBAAoB,EAAE,CAAC;YAC3B,MAAM,gBAAgB,GAAG,GAAG,CAAC,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YAClE,MAAM,gBAAgB,GAAG,GAAG,CAAC,UAAU,CAAC,eAAe,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;YACpF,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YAClG,MAAM,WAAW,GAAG,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;YACrG,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,WAAW;qBACpD;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YACpB,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,wBAAwB,KAAK,CAAC,OAAO,EAAE;qBAC9C;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
package/build/types.d.ts CHANGED
@@ -4,8 +4,18 @@
4
4
  */
5
5
  import type { ConnectionService } from './services/connection-service.js';
6
6
  import type { QueryService } from './services/query-service.js';
7
+ import type { WriteService } from './services/write-service.js';
7
8
  export interface ServiceContext {
8
9
  readonly connection: ConnectionService;
9
10
  readonly query: QueryService;
11
+ readonly write: WriteService;
12
+ checkViewManageEnabled(): void;
13
+ checkViewDropEnabled(): void;
14
+ checkSprocManageEnabled(): void;
15
+ checkSprocDropEnabled(): void;
16
+ checkSprocExecuteEnabled(): void;
17
+ checkInsertEnabled(): void;
18
+ checkUpdateEnabled(): void;
19
+ checkDeleteEnabled(): void;
10
20
  }
11
21
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,sBAAsB,IAAI,IAAI,CAAC;IAC/B,oBAAoB,IAAI,IAAI,CAAC;IAC7B,uBAAuB,IAAI,IAAI,CAAC;IAChC,qBAAqB,IAAI,IAAI,CAAC;IAC9B,wBAAwB,IAAI,IAAI,CAAC;IACjC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,kBAAkB,IAAI,IAAI,CAAC;IAC3B,kBAAkB,IAAI,IAAI,CAAC;CAC5B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-consultant-tools/azure-sql",
3
- "version": "28.0.0-beta.7",
4
- "description": "MCP server for Azure SQL Database - read-only queries and schema exploration",
3
+ "version": "29.0.0-beta.1",
4
+ "description": "MCP server for Azure SQL Database - queries, schema exploration, and optional write operations",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
7
7
  "types": "./build/index.d.ts",
@@ -39,8 +39,9 @@
39
39
  "node": ">=16.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@mcp-consultant-tools/core": "28.0.0-beta.7",
42
+ "@mcp-consultant-tools/core": "28.0.0",
43
43
  "@modelcontextprotocol/sdk": "^1.0.4",
44
+ "commander": "^14.0.3",
44
45
  "mssql": "^11.0.1",
45
46
  "zod": "^3.24.1"
46
47
  },
@@ -50,6 +51,7 @@
50
51
  "typescript": "^5.8.2"
51
52
  },
52
53
  "bin": {
53
- "mcp-sql": "build/index.js"
54
+ "mcp-sql": "build/index.js",
55
+ "mcp-sql-cli": "build/cli.js"
54
56
  }
55
57
  }