purchase-mcp-server
Version:
Purchase and budget management server handling requisitions, purchase orders, expenses, budgets, and vendor management with ERP access for data extraction
79 lines (78 loc) • 1.76 kB
TypeScript
export * from "./generated.js";
/** @deprecated Use specific tool argument interfaces from generated.ts instead */
export interface ToolArguments {
session_id?: string;
imo?: string;
query?: string;
filters?: Record<string, any>;
sort_by?: string;
sort_order?: string;
max_results?: number;
per_page?: number;
limit?: number;
start_date?: string;
end_date?: string;
daysAgo?: number;
status?: string;
type?: string;
stage?: string;
priority?: string;
purchaseRequisitionNumber?: string;
orderId?: string;
vendorId?: string;
[key: string]: any;
}
export interface VesselInfo {
imo: string;
name: string;
}
export interface PurchaseRequisition {
id: string;
vesselId: string;
status: string;
priority: string;
}
export interface PurchaseOrder {
id: string;
requisitionId: string;
status: string;
}
export interface BudgetData {
vesselId: string;
year: number;
month: number;
amount: number;
}
export interface Casefile {
id: string;
title: string;
content: string;
createdAt: Date;
updatedAt: Date;
}
export interface VendorInfo {
id: string;
name: string;
contactDetails: {
email?: string;
phone?: string;
address?: string;
};
}
export interface Config {
mongoUri: string;
mongoDbName: string;
typesenseHost: string;
typesensePort: number;
typesenseProtocol: string;
typesenseApiKey: string;
openaiApiKey: string;
llamaApiKey: string;
vendorModel: string;
s3ApiToken: string;
s3GenerateHtmlUrl: string;
perplexityApiKey: string;
googleSearchApiKey: string;
googleSearchEngineId: string;
baseUrl?: string;
}