# Function registerPrompts

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- registerPrompts(server: McpServer, logger: ILogger): PromptRegistrationResult

  Registers all prompt templates on the MCP server.

  Iterates `PROMPT_DEFINITIONS` and calls `server.registerPrompt()` for each. The SDK handles argument validation via the Zod schemas defined in each prompt.

  #### Parameters

  - server: McpServer

    The MCP server instance

  - logger: ILogger

    Logger for registration events

  #### Returns PromptRegistrationResult

  The list of registered prompt names

  - Defined in packages/nexus-agents/src/mcp/prompts/index.ts:42