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:
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.
The README advertises prompts (e.g. "use the prompt
Provide feedback for HubSpot MCP toolsfrom your preferred client application") and the codebase shipsdist/prompts/hubspotSalesCoachPrompt.jsdefiningHubspotSalesCoachPrompt. Butdist/prompts/promptsRegistry.jsis literally:So
registerPrompt(...)is never called for any of these prompts. As a result, MCP clients callingprompts/listget an empty array, and the prompts described in the README aren't discoverable.Repro (against
@hubspot/[email protected]):tools/listworks (returns 21 tools);prompts/listreturns{"prompts":[]}.Suggested fix: have
promptsRegistry.jsimport andregisterPrompt(new HubspotSalesCoachPrompt())(and the feedback prompt) at module load time, matching the pattern that presumably exists for tools intoolsRegistry.ts.