@supermodeltools/mcp-server 0.6.0 → 0.6.3

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/dist/server.js CHANGED
@@ -136,8 +136,9 @@ This helps the maintainers fix bugs faster and avoids wasting your iteration bud
136
136
  if (this.defaultWorkdir) {
137
137
  logger.debug('Default workdir:', this.defaultWorkdir);
138
138
  }
139
+ const api = new sdk_1.DefaultApi(config);
139
140
  this.client = {
140
- graphs: new sdk_1.DefaultApi(config),
141
+ graphs: new sdk_1.SupermodelClient(api),
141
142
  };
142
143
  this.setupHandlers();
143
144
  }
@@ -661,10 +661,6 @@ async function fetchFromApi(client, file, idempotencyKey) {
661
661
  const apiUrl = `${baseUrl}/v1/graphs/supermodel`;
662
662
  // Log the request details
663
663
  logRequest(apiUrl, 'POST', fileSize, idempotencyKey);
664
- const requestParams = {
665
- file: fileBlob,
666
- idempotencyKey: idempotencyKey,
667
- };
668
664
  // Start progress logging
669
665
  console.error('[Supermodel] Starting codebase analysis...');
670
666
  // Set up periodic progress updates every 15 seconds
@@ -675,7 +671,8 @@ async function fetchFromApi(client, file, idempotencyKey) {
675
671
  console.error(`[Supermodel] Analysis in progress... (${elapsedSeconds}s elapsed)`);
676
672
  }, 15000);
677
673
  try {
678
- const response = await client.graphs.generateSupermodelGraph(requestParams);
674
+ // SupermodelClient handles polling automatically
675
+ const response = await client.graphs.generateSupermodelGraph(fileBlob, { idempotencyKey });
679
676
  const duration = Date.now() - startTime;
680
677
  // Clear progress interval
681
678
  if (progressInterval) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supermodeltools/mcp-server",
3
- "version": "0.6.0",
3
+ "version": "0.6.3",
4
4
  "description": "MCP server for Supermodel API - code graph generation for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@modelcontextprotocol/sdk": "^1.0.1",
41
- "@supermodeltools/sdk": "^0.3.8",
41
+ "@supermodeltools/sdk": "0.6.3",
42
42
  "archiver": "^7.0.1",
43
43
  "ignore": "^7.0.5",
44
44
  "jq-web": "^0.6.2",