UNPKG

fixparser-plugin-mcp

Version:

FIXParser MCP Plugin (Local/Remote)

33 lines (32 loc) 1.09 kB
import type { IFIXParser, Message } from 'fixparser'; import { MCPBase } from './MCPBase.ts'; import type { PluginOptions } from './PluginOptions.ts'; import type { VerifiedOrder } from './schemas/index.ts'; import type { MarketDataEntry } from './schemas/marketData.ts'; export declare class MCPLocal extends MCPBase { /** * Map to store verified orders before execution * @private */ protected verifiedOrders: Map<string, VerifiedOrder>; /** * Map to store pending requests and their callbacks * @private */ protected pendingRequests: Map<string, (data: Message) => void>; /** * Map to store market data prices for each symbol * @private */ protected marketDataPrices: Map<string, MarketDataEntry[]>; /** * Maximum number of price history entries to keep per symbol * @private */ protected readonly MAX_PRICE_HISTORY = 100000; private server; private transport; constructor({ logger, onReady }: PluginOptions); register(parser: IFIXParser): Promise<void>; private addWorkflows; }