Skip to content

prompts/list returns empty — HubspotSalesCoachPrompt and feedback prompt defined but never registered #8

Description

@ross-makeacompany

The README advertises prompts (e.g. "use the prompt Provide feedback for HubSpot MCP tools from your preferred client application") and the codebase ships dist/prompts/hubspotSalesCoachPrompt.js defining HubspotSalesCoachPrompt. But dist/prompts/promptsRegistry.js is literally:

export {};

So registerPrompt(...) is never called for any of these prompts. As a result, MCP clients calling prompts/list get an empty array, and the prompts described in the README aren't discoverable.

Repro (against @hubspot/[email protected]):

mkdir t && cd t && npm init -y && npm install @hubspot/mcp-server
(
  echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"x","version":"0"}}}'
  sleep 0.4
  echo '{"jsonrpc":"2.0","method":"notifications/initialized"}'
  sleep 0.3
  echo '{"jsonrpc":"2.0","id":2,"method":"prompts/list"}'
  sleep 0.5
) | PRIVATE_APP_ACCESS_TOKEN=dummy node node_modules/@hubspot/mcp-server/dist/index.js

tools/list works (returns 21 tools); prompts/list returns {"prompts":[]}.

Suggested fix: have promptsRegistry.js import and registerPrompt(new HubspotSalesCoachPrompt()) (and the feedback prompt) at module load time, matching the pattern that presumably exists for tools in toolsRegistry.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions