/** * Server extensions for Vincent MCP * * This module provides functionality to extend an MCP server with additional abilities * for Vincent applications. These abilities enable the server to provide information * about delegators, PKP balances, tokens, and token allowances. * * The extensions enhance the base MCP server with blockchain-specific capabilities * that are useful for Vincent applications interacting with the Lit Network to act * on behalf of their delegators. * * @module extensions * @category Vincent MCP */ import { VincentAppDef } from '@lit-protocol/vincent-mcp-sdk'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { ethers } from 'ethers'; /** * Extends an MCP server with additional abilities for Vincent applications * * This function adds several abilities to an MCP server that provide blockchain-specific * capabilities useful for Vincent applications: * * 1. `get-delegators-info`: Gets information about the delegators for the Vincent app * 2. `native-balance`: Gets the native token balance for a PKP address on a specific chain * 3. `token-info`: Gets information about an ERC20 token on a specific chain * 4. `token-allowance`: Gets information about token allowances for a PKP address * * These abilities enhance the base MCP server with capabilities that allow LLMs to * query and interact with blockchain data. * * @param server - The MCP server to extend * @param vincentAppDefinition - The Vincent application definition * @param delegateeSigner - The Ethereum signer used to execute the abilities * * @example * ```typescript * import { VincentAppDef } from '@lit-protocol/vincent-mcp-sdk'; * import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; * import { ethers } from 'ethers'; * import { extendVincentServer } from '@lit-protocol/vincent-mcp-server'; * * // Create a base MCP server * const server = new McpServer({ * name: 'My Vincent App', * version: '1', * }); * * // Define your Vincent application * const appDef: VincentAppDef = { * id: '8462368', * name: 'My Vincent App', * version: '1', * abilities: { * // Your abilities here * } * }; * * // Create a signer * const delegateeSigner = new ethers.Wallet('YOUR_PRIVATE_KEY'); * * // Extend the server with additional abilities * extendVincentServer(server, appDef, delegateeSigner); * // Now the server has additional abilities to query blockchain data * ``` */ export declare function extendVincentServer(server: McpServer, vincentAppDefinition: VincentAppDef, delegateeSigner: ethers.Signer): void; //# sourceMappingURL=extensions.d.ts.map