frappe-mcp-server
Version:
Enhanced Model Context Protocol server for Frappe Framework with comprehensive API instructions and helper tools
204 lines (203 loc) • 5.62 kB
TypeScript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
export declare const DOCUMENT_TOOLS: ({
name: string;
description: string;
inputSchema: {
type: string;
properties: {
doctype: {
type: string;
description: string;
};
values: {
type: string;
description: string;
additionalProperties: boolean;
};
name?: undefined;
fields?: undefined;
filters?: undefined;
limit?: undefined;
limit_start?: undefined;
order_by?: undefined;
bank_transaction_name?: undefined;
vouchers?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
doctype: {
type: string;
description: string;
};
name: {
type: string;
description: string;
};
fields: {
type: string;
items: {
type: string;
};
description: string;
};
values?: undefined;
filters?: undefined;
limit?: undefined;
limit_start?: undefined;
order_by?: undefined;
bank_transaction_name?: undefined;
vouchers?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
doctype: {
type: string;
description: string;
};
name: {
type: string;
description: string;
};
values: {
type: string;
description: string;
additionalProperties: boolean;
};
fields?: undefined;
filters?: undefined;
limit?: undefined;
limit_start?: undefined;
order_by?: undefined;
bank_transaction_name?: undefined;
vouchers?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
doctype: {
type: string;
description: string;
};
name: {
type: string;
description: string;
};
values?: undefined;
fields?: undefined;
filters?: undefined;
limit?: undefined;
limit_start?: undefined;
order_by?: undefined;
bank_transaction_name?: undefined;
vouchers?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
doctype: {
type: string;
description: string;
};
filters: {
type: string;
description: string;
additionalProperties: boolean;
};
fields: {
type: string;
items: {
type: string;
};
description: string;
};
limit: {
type: string;
description: string;
};
limit_start: {
type: string;
description: string;
};
order_by: {
type: string;
description: string;
};
values?: undefined;
name?: undefined;
bank_transaction_name?: undefined;
vouchers?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
bank_transaction_name: {
type: string;
description: string;
};
vouchers: {
type: string;
description: string;
items: {
type: string;
properties: {
payment_doctype: {
type: string;
description: string;
};
payment_name: {
type: string;
description: string;
};
amount: {
type: string;
description: string;
};
};
required: string[];
};
};
doctype?: undefined;
values?: undefined;
name?: undefined;
fields?: undefined;
filters?: undefined;
limit?: undefined;
limit_start?: undefined;
order_by?: undefined;
};
required: string[];
};
})[];
export declare function handleDocumentToolCall(request: any): Promise<any>;
export declare function setupDocumentTools(server: McpServer): void;
/**
* Handle call_method tool call
*/
export declare function handleCallMethodToolCall(request: any): Promise<any>;