Skip to content

Commit 23c86de

Browse files
czlonkowskiclaude
andauthored
fix: re-export probeOfficialMcp from the package root (v2.75.1) (czlonkowski#1030)
The exports map publishes only ".", so the mcp-engine export was unreachable through a normal import and embedders had to resolve the compiled file by path. Conceived by Romuald Członkowski - www.aiadvisors.pl/en Claude-Session: https://claude.ai/code/session_01J5E2LQVUpMQDBDueBzieGp Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 9a96760 commit 23c86de

5 files changed

Lines changed: 21 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.75.1] - 2026-08-28
11+
12+
### Fixed
13+
14+
- `probeOfficialMcp` (and the `OfficialMcpCapabilities` / `OfficialMcpErrorCode` types) are now re-exported from the package root. They were exported from `mcp-engine` only, but the package's `exports` map publishes just `.`, so `import { probeOfficialMcp } from 'n8n-mcp'` failed with `ERR_PACKAGE_PATH_NOT_EXPORTED` and embedders had to resolve the compiled file by path.
15+
1016
## [2.75.0] - 2026-08-28
1117

1218
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-mcp",
3-
"version": "2.75.0",
3+
"version": "2.75.1",
44
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

package.runtime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-mcp-runtime",
3-
"version": "2.75.0",
3+
"version": "2.75.1",
44
"description": "n8n MCP Server Runtime Dependencies Only",
55
"private": true,
66
"dependencies": {

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
// Engine exports for service integration
88
export { N8NMCPEngine, EngineHealth, EngineOptions } from './mcp-engine';
9+
// Probe n8n's instance-level MCP server (same codes as n8n_health_check's officialMcp block);
10+
// the package's exports map publishes only ".", so embedders need it re-exported here.
11+
export { probeOfficialMcp } from './services/n8n-official-mcp-client';
12+
export type { OfficialMcpCapabilities, OfficialMcpErrorCode } from './services/n8n-official-mcp-client';
913
export { SingleSessionHTTPServer } from './http-server-single-session';
1014
export { ConsoleManager } from './utils/console-manager';
1115
export { N8NDocumentationMCPServer } from './mcp/server';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { describe, it, expect } from 'vitest';
2+
import * as root from '@/index';
3+
4+
describe('package root exports', () => {
5+
it('re-exports the official MCP probe for embedders', () => {
6+
expect(typeof root.probeOfficialMcp).toBe('function');
7+
expect(typeof root.N8NMCPEngine).toBe('function');
8+
});
9+
});

0 commit comments

Comments
 (0)