getSignerInfo
Retrieve current signing configuration and public key for Nostr protocol operations, enabling AI agents to verify and manage cryptographic identities.
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 core implementation of the getSignerInfo tool, which retrieves the current signing mode (nip46-bunker or direct-key) and the public key if in bunker mode.
export function getSignerInfo() { return { mode: isBunkerMode() ? 'nip46-bunker' : 'direct-key', pubkey: isBunkerMode() ? getBunkerPubkey() : null, bunkerConfigured: isBunkerMode(), }; } - src/index.ts:157-159 (registration)Registration of the getSignerInfo tool within the MCP server.
server.tool('getSignerInfo', 'Returns current signing configuration and pubkey', {}, async () => { return textResult(getSignerInfo()); });