get_state
Retrieve the current status of Solana token airdrops to employees, enabling HR teams to monitor progress and ensure efficient role-based distribution.
Instructions
Get the current state of the airdrop process
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:1219-1243 (handler)The handler function that executes the get_state tool, returning formatted text of the current airdrop process state including wallet connection, token creation, employee count, airdrop status, and email status.private async handleGetState() { return { content: [ { type: 'text', text: ` Current Airdrop State: - Connected Wallet: ${this.state.connectedWallet ? 'Yes' : 'No'}${ this.state.connectedWallet ? `\n Public Key: ${this.state.connectedWallet.publicKey}\n SOL Balance: ${this.state.connectedWallet.solBalance} SOL` : '' } - Created Token: ${this.state.createdToken ? 'Yes' : 'No'}${ this.state.createdToken ? `\n Name: ${this.state.createdToken.name}\n Symbol: ${this.state.createdToken.symbol}\n Supply: ${this.state.createdToken.supply.toLocaleString()}\n Mint Address: ${this.state.createdToken.mintAddress}` : '' } - Employees: ${this.state.employees.length} - Airdrop Status: ${this.state.airdropStatus.completed ? 'Completed' : this.state.airdropStatus.started ? 'In Progress' : 'Not Started'} - Emails Status: ${this.state.emailsStatus.sent ? 'Sent' : 'Not Sent'} `.trim(), }, ], }; }
- src/server.ts:298-304 (registration)Registration of the 'get_state' tool in the MCP server tools list, including name, description, and empty input schema (no parameters required).name: 'get_state', description: 'Get the current state of the airdrop process', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:336-337 (registration)Dispatch logic in the tool request handler switch statement that routes 'get_state' calls to the handleGetState method.case 'get_state': return await this.handleGetState();
- src/server.ts:300-303 (schema)Input schema definition for the 'get_state' tool, specifying an empty object (no input parameters).inputSchema: { type: 'object', properties: {}, },