fixparser-plugin-mcp 9.1.7-def37df3 → 9.1.7-e016b83b
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/build/cjs/MCPLocal.js +888 -2304
- package/build/cjs/MCPLocal.js.map +4 -4
- package/build/cjs/MCPRemote.js +437 -2372
- package/build/cjs/MCPRemote.js.map +4 -4
- package/build/esm/MCPLocal.mjs +888 -2294
- package/build/esm/MCPLocal.mjs.map +4 -4
- package/build/esm/MCPRemote.mjs +444 -2360
- package/build/esm/MCPRemote.mjs.map +4 -4
- package/build-examples/cjs/example_mcp_local.js +47 -14
- package/build-examples/cjs/example_mcp_local.js.map +4 -4
- package/build-examples/esm/example_mcp_local.mjs +47 -14
- package/build-examples/esm/example_mcp_local.mjs.map +4 -4
- package/package.json +9 -10
- package/types/MCPLocal.d.ts +16 -0
- package/types/MCPRemote.d.ts +60 -0
- package/types/PluginOptions.d.ts +6 -0
- package/types/index.d.ts +3 -0
- package/build/cjs/index.js +0 -2669
- package/build/cjs/index.js.map +0 -7
- package/build/esm/index.mjs +0 -2631
- package/build/esm/index.mjs.map +0 -7
- package/build-examples/cjs/example_mcp_remote.js +0 -18
- package/build-examples/cjs/example_mcp_remote.js.map +0 -7
- package/build-examples/esm/example_mcp_remote.mjs +0 -18
- package/build-examples/esm/example_mcp_remote.mjs.map +0 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fixparser-plugin-mcp",
|
|
3
|
-
"version": "9.1.7-
|
|
4
|
-
"description": "FIXParser MCP Plugin (Local/Remote)",
|
|
3
|
+
"version": "9.1.7-e016b83b",
|
|
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": "
|
|
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.
|
|
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
|
-
"
|
|
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/
|
|
55
|
+
"types": "./types/MCPLocal.d.ts",
|
|
57
56
|
"exports": {
|
|
58
57
|
".": {
|
|
59
|
-
"types": "./types/
|
|
60
|
-
"import": "./build/esm/
|
|
61
|
-
"require": "./build/cjs/
|
|
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
|
+
}
|
package/types/index.d.ts
ADDED