it-tools-mcp 3.0.21 → 3.0.23

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 CHANGED
@@ -118,7 +118,7 @@ Examples of using the IT Tools MCP server with VS Code Copilot Chat for secure p
118
118
  | `json-to-toml` | Convert JSON to TOML | `json: string` |
119
119
  | `markdown-to-html` | Convert Markdown to HTML | `markdown: string` |
120
120
  | `phone-format` | Parse and format phone numbers | `phoneNumber: string`, `countryCode?: string` |
121
- | `sql-format` | Format SQL | `sql: string` |
121
+ | `sql-format` | Format SQL | `sql: string`, `dialect?: 'sql' \| 'mysql' \| 'postgresql' \| 'sqlite' \| 'mariadb' \| 'db2' \| 'plsql' \| 'n1ql' \| 'redshift' \| 'spark' \| 'tsql' \| 'trino' \| 'bigquery'` (optional, default: 'sql') |
122
122
  | `toml-to-json` | Convert TOML to JSON | `toml: string` |
123
123
  | `xml-format` | Format XML | `xml: string`, `indent?: number` |
124
124
  | `yaml-format` | Format YAML | `yaml: string` |
@@ -256,7 +256,45 @@ src/
256
256
 
257
257
  ## šŸ¤ Contributing
258
258
 
259
- Contributions welcome! Please submit a Pull Request.
259
+ Contributions are welcome! Please follow the guidelines below:
260
+
261
+ ### Commit Message Format
262
+
263
+ This project uses **Conventional Commits** for clear, consistent commit messages.
264
+
265
+ **Version Management:**
266
+ - šŸ”§ **Manual version bumping** - Update `package.json` when you want to release
267
+ - šŸ¤– **Automatic publishing** - CI/CD detects changes and publishes automatically
268
+ - šŸ·ļø **Git tags** - Created automatically based on package.json version
269
+
270
+ **Examples:**
271
+ ```bash
272
+ git commit -m "feat: add new encryption tool"
273
+ git commit -m "fix: resolve base64 decoding issue"
274
+ git commit -m "docs: improve README examples"
275
+
276
+ # When ready to release, update package.json:
277
+ npm version patch # or minor, major
278
+ git commit -m "chore: bump version to v1.2.3"
279
+ git push
280
+ ```
281
+
282
+ šŸ“– See [COMMIT_TEMPLATE_SETUP.md](COMMIT_TEMPLATE_SETUP.md) for setup instructions.
283
+
284
+ ### Development Process
285
+
286
+ 1. Fork the repository
287
+ 2. Run `./setup-commit-template.sh` (recommended)
288
+ 3. Create a feature branch
289
+ 4. Make your changes following the project structure
290
+ 5. Use conventional commit messages
291
+ 6. Submit a Pull Request
292
+
293
+ The CI/CD pipeline will automatically:
294
+ - āœ… Build and test your changes
295
+ - šŸ·ļø Bump version based on commit messages (on merge to main)
296
+ - šŸ“¦ Publish to Docker Hub and NPM
297
+ - šŸš€ Create GitHub releases
260
298
 
261
299
  ## šŸ“„ License
262
300
 
@@ -258,22 +258,23 @@ ${formatted}
258
258
  // SQL formatter tool
259
259
  server.tool("sql-format", "Format and prettify SQL queries", {
260
260
  sql: z.string().describe("SQL query to format"),
261
- }, async ({ sql }) => {
261
+ dialect: z.string().optional().describe("SQL dialect to use for formatting (e.g., 'sql', 'mysql', 'postgresql', 'sqlite', 'mariadb', 'db2', 'plsql', 'n1ql', 'redshift', 'spark', 'tsql', 'trino', 'bigquery'). Default is 'sql'."),
262
+ }, async ({ sql, dialect = "sql" }) => {
262
263
  try {
263
264
  const { format: formatSQL } = await import("sql-formatter");
265
+ // Validate dialect and cast to correct type
266
+ const supportedDialects = [
267
+ "sql", "mysql", "postgresql", "sqlite", "mariadb", "db2", "plsql", "n1ql", "redshift", "spark", "tsql", "trino", "bigquery"
268
+ ];
269
+ const language = supportedDialects.includes(dialect) ? dialect : "sql";
264
270
  const formatted = formatSQL(sql, {
265
- language: "sql"
271
+ language
266
272
  });
267
273
  return {
268
274
  content: [
269
275
  {
270
276
  type: "text",
271
- text: `Formatted SQL:
272
-
273
- ${formatted}
274
-
275
- āœ… SQL formatted successfully
276
- šŸŽÆ Features: uppercase keywords, proper indentation, clean structure`,
277
+ text: `Formatted SQL (dialect: ${language}):\n\n${formatted}\n\nāœ… SQL formatted successfully\nšŸŽÆ Features: uppercase keywords, proper indentation, clean structure`,
277
278
  },
278
279
  ],
279
280
  };
@@ -283,13 +284,7 @@ ${formatted}
283
284
  content: [
284
285
  {
285
286
  type: "text",
286
- text: `Error formatting SQL: ${error instanceof Error ? error.message : 'Unknown error'}
287
-
288
- šŸ’” Common SQL issues:
289
- • Check syntax for missing semicolons
290
- • Ensure proper table and column names
291
- • Validate string quoting (single quotes for strings)
292
- • Check for balanced parentheses in subqueries`,
287
+ text: `Error formatting SQL: ${error instanceof Error ? error.message : 'Unknown error'}\n\nšŸ’” Common SQL issues:\n• Check syntax for missing semicolons\n• Ensure proper table and column names\n• Validate string quoting (single quotes for strings)\n• Check for balanced parentheses in subqueries`,
293
288
  },
294
289
  ],
295
290
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-tools-mcp",
3
- "version": "3.0.21",
3
+ "version": "3.0.23",
4
4
  "description": "MCP server providing access to various IT tools and utilities for developers",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",