fixparser-plugin-mcp 9.1.7-eb1de32a → 9.1.7-edd9ee17
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 +528 -126
- package/build/cjs/MCPLocal.js.map +4 -4
- package/build/cjs/MCPRemote.js +1328 -435
- package/build/cjs/MCPRemote.js.map +4 -4
- package/build/cjs/index.js +1627 -0
- package/build/cjs/index.js.map +7 -0
- package/build/esm/MCPLocal.mjs +529 -127
- package/build/esm/MCPLocal.mjs.map +4 -4
- package/build/esm/MCPRemote.mjs +1318 -444
- package/build/esm/MCPRemote.mjs.map +4 -4
- package/build/esm/index.mjs +1589 -0
- package/build/esm/index.mjs.map +7 -0
- package/build-examples/cjs/example_mcp_local.js +7 -7
- package/build-examples/cjs/example_mcp_local.js.map +4 -4
- package/build-examples/cjs/example_mcp_remote.js +16 -0
- package/build-examples/cjs/example_mcp_remote.js.map +7 -0
- package/build-examples/esm/example_mcp_local.mjs +7 -7
- package/build-examples/esm/example_mcp_local.mjs.map +4 -4
- package/build-examples/esm/example_mcp_remote.mjs +16 -0
- package/build-examples/esm/example_mcp_remote.mjs.map +7 -0
- package/package.json +6 -6
- package/types/MCPBase.d.ts +49 -0
- package/types/MCPLocal.d.ts +25 -9
- package/types/MCPRemote.d.ts +25 -27
- package/types/schemas/index.d.ts +3 -17
- package/types/schemas/marketData.d.ts +48 -0
- package/types/schemas/schemas.d.ts +1 -1
- package/types/tools/index.d.ts +2 -8
- package/types/tools/marketData.d.ts +8 -23
- package/types/tools/order.d.ts +4 -3
- package/types/tools/parse.d.ts +2 -2
- package/types/tools/parseToJSON.d.ts +2 -2
- package/types/utils/messageHandler.d.ts +12 -0
package/types/tools/order.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
1
2
|
import { type IFIXParser, type Message } from 'fixparser';
|
|
2
|
-
import type {
|
|
3
|
+
import type { VerifiedOrder } from '../schemas';
|
|
3
4
|
export declare const createVerifyOrderHandler: (
|
|
4
5
|
parser: IFIXParser,
|
|
5
6
|
verifiedOrders: Map<string, VerifiedOrder>,
|
|
6
|
-
) => (args: VerifiedOrder) => Promise<
|
|
7
|
+
) => (args: VerifiedOrder) => Promise<CallToolResult>;
|
|
7
8
|
export declare const createExecuteOrderHandler: (
|
|
8
9
|
parser: IFIXParser,
|
|
9
10
|
verifiedOrders: Map<string, VerifiedOrder>,
|
|
10
11
|
pendingRequests: Map<string, (data: Message) => void>,
|
|
11
|
-
) => (args: VerifiedOrder) => Promise<
|
|
12
|
+
) => (args: VerifiedOrder) => Promise<CallToolResult>;
|
package/types/tools/parse.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
1
2
|
import type { IFIXParser } from 'fixparser';
|
|
2
|
-
import type { ToolResponse } from '../schemas';
|
|
3
3
|
export declare const createParseHandler: (parser: IFIXParser) => (args: {
|
|
4
4
|
fixString: string;
|
|
5
|
-
}) => Promise<
|
|
5
|
+
}) => Promise<CallToolResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
1
2
|
import type { IFIXParser } from 'fixparser';
|
|
2
|
-
import type { ToolResponse } from '../schemas';
|
|
3
3
|
export declare const createParseToJSONHandler: (parser: IFIXParser) => (args: {
|
|
4
4
|
fixString: string;
|
|
5
|
-
}) => Promise<
|
|
5
|
+
}) => Promise<CallToolResult>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type IFIXParser, type Message } from 'fixparser';
|
|
2
|
+
import type { MarketDataEntry } from '../schemas/marketData.ts';
|
|
3
|
+
export type PendingRequests = Map<string, (data: Message) => void>;
|
|
4
|
+
export type MarketDataPrices = Map<string, MarketDataEntry[]>;
|
|
5
|
+
export declare function handleMessage(
|
|
6
|
+
message: Message,
|
|
7
|
+
parser: IFIXParser,
|
|
8
|
+
pendingRequests: PendingRequests,
|
|
9
|
+
marketDataPrices: MarketDataPrices,
|
|
10
|
+
maxPriceHistory: number,
|
|
11
|
+
onPriceUpdate?: (symbol: string, data: MarketDataEntry) => void,
|
|
12
|
+
): void;
|