@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.
- package/bin/sonarqube-mcp.js +1 -1
- package/index.js +9 -5
- package/package.json +2 -1
package/bin/sonarqube-mcp.js
CHANGED
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
}
|
|
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
|
|
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