@miocid152/sonarqube-mcp-server 1.0.0 → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { SonarQubeMCPServer } = require('../index.js');
3
+ import SonarQubeMCPServer from '../index.js';
4
4
 
5
5
  async function main() {
6
6
  const sonarUrl = process.env.SONAR_URL;
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- const { Server } = require('@modelcontextprotocol/sdk/server/index.js');
2
- const { StdioServerTransport } = require('@modelcontextprotocol/sdk/server/stdio.js');
3
- const {
1
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
+ import {
4
4
  CallToolRequestSchema,
5
5
  ListToolsRequestSchema,
6
- } = require('@modelcontextprotocol/sdk/types.js');
6
+ } from '@modelcontextprotocol/sdk/types.js';
7
7
 
8
8
  class SonarQubeMCPServer {
9
9
  constructor(sonarUrl, sonarToken) {
@@ -320,7 +320,11 @@ class SonarQubeMCPServer {
320
320
  async start() {
321
321
  const transport = new StdioServerTransport();
322
322
  await this.server.connect(transport);
323
- console.error('SonarQube MCP Server started');
323
+ console.error('SonarQube MCP Server running...');
324
+ }
325
+ }
326
+
327
+ export default SonarQubeMCPServer;le.error('SonarQube MCP Server started');
324
328
  }
325
329
  }
326
330
 
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@miocid152/sonarqube-mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP Server for SonarQube integration",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "bin": {
7
8
  "sonarqube-mcp": "./bin/sonarqube-mcp.js"