getSignerInfo
Retrieve current signing configuration and public key for Nostr protocol interactions. Use this to verify authentication settings before publishing notes or sending encrypted messages.
Instructions
Returns current signing configuration and pubkey
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/signer-tools.ts:3-9 (handler)The handler function that executes the logic for the getSignerInfo tool.
export function getSignerInfo() { return { mode: isBunkerMode() ? 'nip46-bunker' : 'direct-key', pubkey: isBunkerMode() ? getBunkerPubkey() : null, bunkerConfigured: isBunkerMode(), }; } - src/index.ts:157-158 (registration)The tool registration in the MCP server setup.
server.tool('getSignerInfo', 'Returns current signing configuration and pubkey', {}, async () => { return textResult(getSignerInfo());