@heroku/mcp-server 1.0.7 → 1.1.0

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,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  /* global process */
2
3
  try {
3
4
  const { runServer } = await import('../dist/index.js');
package/dist/index.js CHANGED
@@ -19,12 +19,7 @@ const VERSION = pjson.default.version;
19
19
  const server = new McpServer({ name: 'Heroku MCP Server', version: VERSION }, {
20
20
  capabilities: {
21
21
  tools: {
22
- list: {
23
- description: 'List all tools',
24
- parameters: {
25
- type: 'object'
26
- }
27
- }
22
+ listChanged: true
28
23
  }
29
24
  }
30
25
  });
@@ -31,7 +31,7 @@ describe('setupMcpToolMocks', () => {
31
31
  content: [{ type: 'text', text: 'test' }]
32
32
  });
33
33
  // Simulate registration with different argument types
34
- mocks.server.tool('test_tool', 'Test description', {}, { option: 'value' }, testCallback);
34
+ mocks.server.tool('test_tool', 'Test description', {}, { readOnlyHint: true }, testCallback);
35
35
  const capturedCallback = mocks.getToolCallback();
36
36
  expect(capturedCallback).to.equal(testCallback);
37
37
  });
@@ -11,16 +11,18 @@ export function setupMcpToolMocks() {
11
11
  let toolCallback;
12
12
  // Create a proper mock for RegisteredTool
13
13
  const mockRegisteredTool = {
14
- callback: sinon.stub(),
15
14
  enabled: true,
16
15
  enable: sinon.stub(),
17
16
  disable: sinon.stub(),
18
17
  update: sinon.stub(),
19
- remove: sinon.stub()
18
+ remove: sinon.stub(),
19
+ handler: sinon.stub()
20
20
  };
21
21
  // Mock the server.tool method - callback is always the last parameter
22
22
  server.tool.callsFake((...args) => {
23
23
  toolCallback = args[args.length - 1];
24
+ // Update handler to point to the callback
25
+ mockRegisteredTool.handler = toolCallback;
24
26
  return mockRegisteredTool;
25
27
  });
26
28
  return {
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.0.7",
4
+ "version": "1.1.0",
5
5
  "author": "Heroku",
6
6
  "bugs": "https://github.com/heroku/heroku-mcp-server/issues",
7
7
  "bin": {
@@ -34,7 +34,6 @@
34
34
  "eslint-plugin-jsdoc": "^50.6.9",
35
35
  "husky": "^9.1.7",
36
36
  "mocha": "^11.1.0",
37
- "np": "^10.2.0",
38
37
  "nyc": "^17.1.0",
39
38
  "prettier": "^3.5.3",
40
39
  "shx": "^0.4.0",
@@ -83,12 +82,10 @@
83
82
  "format": "prettier . --write --config ./.prettier.mjs",
84
83
  "lint": "cd src && eslint ./",
85
84
  "posttest": "npm run lint",
86
- "prepare": "husky",
87
85
  "pretest": "npm run build",
88
86
  "type-check": "tsc --noEmit",
89
87
  "test": "nyc mocha --forbid-only --loader=ts-node/esm",
90
88
  "exec-perms": "shx chmod +x dist/*.js",
91
- "test:watch": "nyc mocha --watch --forbid-only",
92
- "publish": "npm run build && npm run build:dxt && npm publish"
89
+ "test:watch": "nyc mocha --watch --forbid-only"
93
90
  }
94
- }
91
+ }