@heroku/mcp-server 1.2.10 → 1.2.11

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
3
- import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';
2
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
4
  import * as pjson from '../package.json' with { type: 'json' };
5
5
  import * as apps from './tools/apps.js';
6
6
  import * as spaces from './tools/spaces.js';
@@ -1,6 +1,6 @@
1
1
  import { expect } from 'chai';
2
2
  import sinon from 'sinon';
3
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
3
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
4
  import { registerDevCenterResource } from './dev-center-resource.js';
5
5
  describe('registerDevCenterResource', () => {
6
6
  let server;
package/dist/tools/ai.js CHANGED
@@ -139,7 +139,7 @@ export const registerMakeAiInferenceTool = (server, herokuRepl) => {
139
139
  })
140
140
  .build();
141
141
  const output = await herokuRepl.executeCommand(command);
142
- await fs.rmdir(tempDir, { recursive: true });
142
+ await fs.rm(tempDir, { recursive: true });
143
143
  return handleCliOutput(output);
144
144
  });
145
145
  };
@@ -87,7 +87,7 @@ describe('ai topic tools', () => {
87
87
  let mocks;
88
88
  let mkdtempStub;
89
89
  let writeFileStub;
90
- let rmdirStub;
90
+ let rmStub;
91
91
  let tempDir;
92
92
  let optsFilePath;
93
93
  let toolCallback;
@@ -96,7 +96,7 @@ describe('ai topic tools', () => {
96
96
  optsFilePath = path.join(tempDir, 'opts.json');
97
97
  mkdtempStub = sinon.stub(fs, 'mkdtemp').resolves(tempDir);
98
98
  writeFileStub = sinon.stub(fs, 'writeFile').resolves();
99
- rmdirStub = sinon.stub(fs, 'rmdir').resolves();
99
+ rmStub = sinon.stub(fs, 'rm').resolves();
100
100
  mocks = setupMcpToolMocks();
101
101
  registerMakeAiInferenceTool(mocks.server, mocks.herokuRepl);
102
102
  toolCallback = mocks.getToolCallback();
@@ -135,7 +135,7 @@ describe('ai topic tools', () => {
135
135
  expect(writeFileStub.calledOnce).to.be.true;
136
136
  expect(writeFileStub.firstCall.args[0]).to.equal(optsFilePath);
137
137
  expect(mocks.herokuRepl.executeCommand.calledOnceWith(expectedCommand)).to.be.true;
138
- expect(rmdirStub.calledOnce).to.be.true;
138
+ expect(rmStub.calledOnce).to.be.true;
139
139
  expect(result).to.deep.equal({
140
140
  content: [{ type: 'text', text: expectedOutput }]
141
141
  });
@@ -178,7 +178,7 @@ describe('ai topic tools', () => {
178
178
  expect(writeFileStub.calledOnce).to.be.true;
179
179
  expect(writeFileStub.firstCall.args[0]).to.equal(optsFilePath);
180
180
  expect(mocks.herokuRepl.executeCommand.calledOnceWith(expectedCommand)).to.be.true;
181
- expect(rmdirStub.calledOnce).to.be.true;
181
+ expect(rmStub.calledOnce).to.be.true;
182
182
  expect(result).to.deep.equal({
183
183
  content: [{ type: 'text', text: expectedOutput }]
184
184
  });
@@ -1,5 +1,5 @@
1
1
  import sinon from 'sinon';
2
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
2
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  import { HerokuREPL } from '../repl/heroku-cli-repl.js';
4
4
  /**
5
5
  * Helper function to set up common MCP tool mocks for testing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heroku/mcp-server",
3
3
  "description": "Heroku Platform MCP Server",
4
- "version": "1.2.10",
4
+ "version": "1.2.11",
5
5
  "author": "Heroku",
6
6
  "bugs": "https://github.com/heroku/heroku-mcp-server/issues",
7
7
  "bin": {
@@ -24,7 +24,7 @@
24
24
  "@eslint/js": "^9.39.2",
25
25
  "@types/chai": "^5.2.1",
26
26
  "@types/mocha": "^10.0.10",
27
- "@types/node": "^22.x",
27
+ "@types/node": "^26.x",
28
28
  "@types/shell-quote": "^1.7.5",
29
29
  "@types/sinon": "^22.0.0",
30
30
  "chai": "^6.2.2",