HubSpot WhoAmI via Nango
This skill identifies the current authenticated HubSpot user using the Nango integration.
MCP Server Requirements
This skill depends on the Nango MCP server being correctly configured and connected.
Required Tool:
whoami: Returns the authenticated HubSpot user's ID and email address.
Connection Requirements:
See the connect-to-nango-mcp skill for details on how to configure the Nango MCP server with the necessary authentication headers.
Workflow
GOAL: Retrieve and display the authenticated HubSpot user's identity (ID and email). The connection to Nango is a prerequisite, not the end goal.
Step 1: Ensure Nango is Connected
Verify if the Nango MCP server is connected and the whoami tool is available. If not, follow the connect-to-nango-mcp skill workflow to establish a connection for the hubspot provider. Identify the provider as hubspot immediately.
IMPORTANT: Connecting to Nango is NOT the completion of this task. Once connected, immediately proceed to Step 2 without stopping or asking for permission.
Step 2: Call the whoami Tool
Execute the whoami tool provided by the Nango MCP server. This tool requires no arguments if the connection headers were correctly set during MCP initialization.
Expected output: A JSON response containing the user's HubSpot ID and email address.
What success looks like:
{
"userId": "3768092",
"email": "user@example.com"
}
If the tool call fails with authentication errors, the connection was not properly established.
Step 3: Present the Identity
Display the returned user information (ID and email) to the user in a friendly format. THIS is the completion of the task, not the connection step.
Example Output
HubSpot Identity:
- User ID: 3768092
- Email: email@example.com
Error Handling
- Tool Not Found: Ensure the Nango MCP server is connected and the provider is
hubspot. - Authentication Error: Refer to the troubleshooting section of the
connect-to-nango-mcpskill. - Provider Mismatch: Ensure you are using the
hubspotprovider config key when connecting to Nango.