fixparser-plugin-mcp 9.1.7-def37df3 → 9.1.7-e11287f5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fixparser-plugin-mcp",
3
- "version": "9.1.7-def37df3",
4
- "description": "FIXParser MCP Plugin (Local/Remote)",
3
+ "version": "9.1.7-e11287f5",
4
+ "description": "FIXParser MCP Plugin (Local / Remote)",
5
5
  "files": [
6
6
  "./build/",
7
7
  "./build-examples/",
@@ -21,7 +21,7 @@
21
21
  "build": "npm run clean && npm run types && npm run build:main",
22
22
  "build:main": "node --experimental-strip-types -r ./../../esbuild-hook.ts ./scripts/build",
23
23
  "clean": "node --experimental-strip-types -r ./../../esbuild-hook.ts ./scripts/clean",
24
- "test": "jest --ci --colors --detectOpenHandles --verbose=false",
24
+ "test": "echo 'No tests in the fixparser-plugin-mcp package'",
25
25
  "types": "tsc --declaration --emitDeclarationOnly --stripInternal --declarationDir ./types",
26
26
  "example:mcp_local": "tsx examples/run-example.ts example_mcp_local.ts",
27
27
  "example:mcp_remote": "tsx examples/run-example.ts example_mcp_remote.ts",
@@ -31,14 +31,13 @@
31
31
  },
32
32
  "author": "Victor Norgren",
33
33
  "dependencies": {
34
- "@modelcontextprotocol/sdk": "1.12.3",
34
+ "@modelcontextprotocol/sdk": "1.12.1",
35
35
  "body-parser": "2.2.0",
36
36
  "express": "5.1.0",
37
37
  "fixparser": "next",
38
38
  "fixparser-common": "next",
39
39
  "fixparser-plugin-log-console": "next",
40
- "quickchart-js": "3.1.3",
41
- "zod": "3.25.67"
40
+ "zod": "3.25.62"
42
41
  },
43
42
  "keywords": [
44
43
  "FIXParser",
@@ -53,12 +52,12 @@
53
52
  ],
54
53
  "homepage": "https://fixparser.dev",
55
54
  "license": "LICENSE.md",
56
- "types": "./types/index.d.ts",
55
+ "types": "./types/MCPLocal.d.ts",
57
56
  "exports": {
58
57
  ".": {
59
- "types": "./types/index.d.ts",
60
- "import": "./build/esm/index.mjs",
61
- "require": "./build/cjs/index.js"
58
+ "types": "./types/MCPLocal.d.ts",
59
+ "import": "./build/esm/MCPLocal.mjs",
60
+ "require": "./build/cjs/MCPLocal.js"
62
61
  }
63
62
  },
64
63
  "devDependencies": {
@@ -0,0 +1,16 @@
1
+ import { type IFIXParser } from 'fixparser';
2
+ import type { IPlugin } from 'fixparser-common';
3
+ import type { PluginOptions } from './PluginOptions';
4
+ export declare class MCPLocal implements IPlugin<IFIXParser> {
5
+ private parser;
6
+ private server;
7
+ private transport;
8
+ private onReady;
9
+ private pendingRequests;
10
+ private verifiedOrders;
11
+ private marketDataPrices;
12
+ private readonly MAX_PRICE_HISTORY;
13
+ constructor({ logger, onReady }: PluginOptions);
14
+ register(parser: IFIXParser): Promise<void>;
15
+ private addWorkflows;
16
+ }
@@ -0,0 +1,60 @@
1
+ import { type IFIXParser, type Logger } from 'fixparser';
2
+ import type { IPlugin } from 'fixparser-common';
3
+ export type PluginOptions = {
4
+ port: number;
5
+ logger?: Logger;
6
+ onReady: () => void;
7
+ };
8
+ export declare class MCPRemote implements IPlugin<IFIXParser> {
9
+ /**
10
+ * Port number the server will listen on.
11
+ * @private
12
+ */
13
+ private port;
14
+ /**
15
+ * Optional logger instance for diagnostics and output.
16
+ * @private
17
+ */
18
+ private logger;
19
+ /**
20
+ * FIXParser instance, set during plugin register().
21
+ * @private
22
+ */
23
+ private parser;
24
+ /**
25
+ * Node.js HTTP server instance created internally.
26
+ * @private
27
+ */
28
+ private server;
29
+ /**
30
+ * MCP server instance handling MCP protocol logic.
31
+ * @private
32
+ */
33
+ private mcpServer;
34
+ /**
35
+ * Optional name of the plugin/server instance.
36
+ * @private
37
+ */
38
+ private name;
39
+ /**
40
+ * Optional version string of the plugin/server.
41
+ * @private
42
+ */
43
+ private version;
44
+ /**
45
+ * Called when server is setup and listening.
46
+ * @private
47
+ */
48
+ private onReady;
49
+ /**
50
+ * A map of pending market data requests, keyed by MDReqID.
51
+ * Each entry contains a resolver function that is called when the corresponding
52
+ * FIX Message is received.
53
+ * @private
54
+ * @type {Map<string, (data: Message) => void>}
55
+ */
56
+ private pendingRequests;
57
+ constructor({ port, logger, onReady }: PluginOptions);
58
+ register(parser: IFIXParser): Promise<void>;
59
+ private addWorkflows;
60
+ }
@@ -0,0 +1,6 @@
1
+ import type { Logger } from 'fixparser';
2
+ export type PluginOptions = {
3
+ port: number;
4
+ logger?: Logger;
5
+ onReady: () => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ export { PluginOptions } from './PluginOptions';
2
+ export { MCPLocal } from './MCPLocal';
3
+ export { MCPRemote } from './MCPRemote';