<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Failing to Discover Tools from @hubspot/mcp-server with OpenAI Agents SDK in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1201100#M84346</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/984886"&gt;@LMunni&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/985133"&gt;@BWolfson&lt;/a&gt;&lt;/SPAN&gt;, I wanted to check in on you, are you still experiencing the same behavior?&lt;BR /&gt;&lt;BR /&gt;If you do, can you please submit it via the &lt;A href="https://developers.hubspot.com/feedback" target="_blank"&gt;HubSpot Developer Feedback form&lt;/A&gt; so that the right Team can take a look at it.&lt;BR /&gt;&lt;BR /&gt;Thanks and have a lovely day!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
    <pubDate>Tue, 16 Sep 2025 10:15:33 GMT</pubDate>
    <dc:creator>BérangèreL</dc:creator>
    <dc:date>2025-09-16T10:15:33Z</dc:date>
    <item>
      <title>Failing to Discover Tools from @hubspot/mcp-server with OpenAI Agents SDK</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195076#M84037</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/mcp-server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(v0.4.0) with the Python&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;agents&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SDK. I've managed to resolve all connection and authentication issues, but I've hit a wall where the agent fails to discover any tools from the server.&lt;/P&gt;&lt;P&gt;Log analysis strongly suggests that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/mcp-server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is incorrectly returning an empty&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tools: {}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;capability during the initial&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;initialize&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;handshake, even though it can respond to a direct&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tools/list&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;request later.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Goal:&lt;/STRONG&gt;&lt;BR /&gt;To create a simple Python agent that can connect to the HubSpot MCP server and use its tools to interact with my HubSpot contacts (e.g., get a contact by ID).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Setup:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Server Command:&lt;/STRONG&gt;&lt;BR /&gt;I am running the server using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;supergateway&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;approach as described in the official documentation. My HubSpot token has all the required&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;crm.objects.contacts.*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;crm.schemas.contacts.*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;scopes.&lt;/P&gt;&lt;PRE&gt;# My HubSpot token is set in the $env:HUBSPOT_TOKEN variable
docker run -d `
  --name hubspot-mcp `
  -p 8081:8000 `
  -e PRIVATE_APP_ACCESS_TOKEN=$env:HUBSPOT_TOKEN `
  supercorp/supergateway `
  --oauth2Bearer "my-super-secret-key-123" `
  --stdio "npx -y @hubspot/mcp-server"&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;2. Python Client Code (for diagnostics):&lt;/STRONG&gt;&lt;BR /&gt;To isolate the issue, I'm using the following script to connect and simply list the tools discovered by the agent.&lt;/P&gt;&lt;PRE&gt;import asyncio
import json
from agents import Agent
from agents.mcp import MCPServerSse

async def main():
    GATEWAY_SECRET_KEY = "my-super-secret-key-123"

    async with MCPServerSse(
        name="HubSpot MCP Server",
        params={
            "url": "http://127.0.0.1:8081/sse",
            "headers": {
                "Authorization": f"Bearer {GATEWAY_SECRET_KEY}"
            }
        }
    ) as server:
        print("\n[DIAGNOSTIC] Successfully connected to the server.")
        
        agent = Agent(name="Tool Inspector", mcp_servers=[server])

        if not agent.tools:
            print("[DIAGNOSTIC] Agent did not discover any tools from the server.")
            return

        print(f"[DIAGNOSTIC] Agent discovered {len(agent.tools)} tools.")
        tool_schemas = [tool.oai_schema for tool in agent.tools]
        print(json.dumps(tool_schemas, indent=2))

if __name__ == "__main__":
    asyncio.run(main())&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I run my Python script, the output is consistently:&lt;/P&gt;&lt;PRE&gt;[DIAGNOSTIC] Successfully connected to the server.
[DIAGNOSTIC] Agent did not discover any tools from the server.&lt;/PRE&gt;&lt;P&gt;This shows the connection is succeeding, but the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;agents&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SDK isn't finding any tools.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log Analysis (The Evidence):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've inspected the logs from the Docker container (docker logs hubspot-mcp), and I can see the communication sequence. The logs confirm that the problem is in the server's response to the initial handshake.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;The client connects successfully:&lt;BR /&gt;[supergateway] New SSE connection from ::ffff:172.17.0.1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The client sends the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;initialize&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;request:&lt;BR /&gt;[supergateway] SSE → Child: {"jsonrpc":"2.0","id":0,"method":"initialize", ...}&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/mcp-server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sends back a faulty response:&lt;/P&gt;&lt;PRE&gt;[supergateway] Child → SSE: {
  result: {
    protocolVersion: '2025-06-18',
    capabilities: { tools: {}, prompts: {}, resources: {} },
    serverInfo: { name: 'hubspot-mcp-server', version: '0.4.0' }
  },
  jsonrpc: '2.0',
  id: 0
}&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The crucial part is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;capabilities: { tools: {} }. By returning an empty&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tools&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object, the server is incorrectly signaling that it has no tool capabilities. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;agents-python&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SDK correctly interprets this and concludes there are no tools to discover. The logs later show a successful response to a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tools/list&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;call, but by then the client has already decided there are no tools based on the initial&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;initialize&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;response.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is this a known issue or bug in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/mcp-server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(v0.4.0) public beta?&lt;/LI&gt;&lt;LI&gt;Is there a different way I should be running the server or configuring the client to work around this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;initialize&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;behavior?&lt;/LI&gt;&lt;LI&gt;Does the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;agents-python&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SDK have an option to "force" tool discovery via&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tools/list, even if the server's initial capabilities handshake is incomplete?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for any help or insight you can provide&lt;/P&gt;</description>
      <pubDate>Sat, 30 Aug 2025 16:53:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195076#M84037</guid>
      <dc:creator>LMunni</dc:creator>
      <dc:date>2025-08-30T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failing to Discover Tools from @hubspot/mcp-server with OpenAI Agents SDK</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195208#M84040</link>
      <description>&lt;P&gt;I have a similar use case, so subscribing to this as well&lt;/P&gt;</description>
      <pubDate>Sun, 31 Aug 2025 22:59:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195208#M84040</guid>
      <dc:creator>BWolfson</dc:creator>
      <dc:date>2025-08-31T22:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failing to Discover Tools from @hubspot/mcp-server with OpenAI Agents SDK</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195431#M84045</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/984886"&gt;@LMunni&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/985133"&gt;@BWolfson&lt;/a&gt;&lt;/SPAN&gt; and welcome, we are delighted to see you here!&lt;BR /&gt;&lt;BR /&gt;Thanks for reaching out to the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;I am not aware of a current bug at the moment but I'll keep my eyes open and let you know if I hear about that.&lt;BR /&gt;&lt;BR /&gt;I'd love to put you in touch with our Top Experts and Community Member: Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91296"&gt;@Parvind&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/900628"&gt;@LloydSilverCT&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/939482"&gt;@FilipeMendes&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/766045"&gt;@JamesonC&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/960645"&gt;@syd8&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/954011"&gt;@Bjb&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/236893"&gt;@Cbshipley&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/984433"&gt;@umerfaisal&lt;/a&gt;&lt;/SPAN&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/984886"&gt;@LMunni&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/985133"&gt;@BWolfson&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a great day and thanks so much in advance!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 15:03:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1195431#M84045</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-09-01T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Failing to Discover Tools from @hubspot/mcp-server with OpenAI Agents SDK</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1201100#M84346</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/984886"&gt;@LMunni&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/985133"&gt;@BWolfson&lt;/a&gt;&lt;/SPAN&gt;, I wanted to check in on you, are you still experiencing the same behavior?&lt;BR /&gt;&lt;BR /&gt;If you do, can you please submit it via the &lt;A href="https://developers.hubspot.com/feedback" target="_blank"&gt;HubSpot Developer Feedback form&lt;/A&gt; so that the right Team can take a look at it.&lt;BR /&gt;&lt;BR /&gt;Thanks and have a lovely day!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 10:15:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Failing-to-Discover-Tools-from-hubspot-mcp-server-with-OpenAI/m-p/1201100#M84346</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-09-16T10:15:33Z</dc:date>
    </item>
  </channel>
</rss>

