hubspot-whoami-nango

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

HubSpot WhoAmI via Nango

通过Nango实现HubSpot WhoAmI功能

This skill identifies the current authenticated HubSpot user using the Nango integration.
本skill可借助Nango集成识别当前已认证的HubSpot用户。

MCP Server Requirements

MCP服务器要求

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.

本skill依赖Nango MCP服务器完成正确配置并建立连接。
所需工具:
  • whoami
    :返回已认证HubSpot用户的ID和邮箱地址。
连接要求: 有关如何为Nango MCP服务器配置必要认证头的详细信息,请参阅
connect-to-nango-mcp
skill。

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.
目标:检索并展示已认证HubSpot用户的身份信息(ID和邮箱)。与Nango建立连接是前提条件,而非最终目标。

Step 1: Ensure Nango is Connected

步骤1:确保已连接Nango

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.
验证Nango MCP服务器是否已连接,且
whoami
工具可用。若未连接,请按照
connect-to-nango-mcp
skill的工作流为hubspot提供商建立连接。请立即将提供商标识为
hubspot
重要提示:与Nango建立连接并非任务完成。连接成功后,请立即进入步骤2,无需停顿或请求许可。

Step 2: Call the whoami Tool

步骤2:调用whoami工具

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:
json
{
  "userId": "3768092",
  "email": "user@example.com"
}
If the tool call fails with authentication errors, the connection was not properly established.
执行Nango MCP服务器提供的
whoami
工具。若在MCP初始化阶段已正确设置连接头,该工具无需传入任何参数。
预期输出:包含用户HubSpot ID和邮箱地址的JSON响应。
成功示例
json
{
  "userId": "3768092",
  "email": "user@example.com"
}
若工具调用因认证错误失败,则说明连接未正确建立。

Step 3: Present the Identity

步骤3:展示身份信息

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.

以友好格式向用户展示返回的用户信息(ID和邮箱)。此步骤为任务的完成标志,而非连接步骤。

Example Output

示例输出

text
HubSpot Identity:
- User ID: 3768092
- Email: email@example.com
text
HubSpot身份信息:
- 用户ID:3768092
- 邮箱: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-mcp
    skill.
  • Provider Mismatch: Ensure you are using the
    hubspot
    provider config key when connecting to Nango.
  • 工具未找到:确保已连接Nango MCP服务器,且提供商为
    hubspot
  • 认证错误:请参阅
    connect-to-nango-mcp
    skill的故障排除部分。
  • 提供商不匹配:连接Nango时,请确保使用
    hubspot
    作为提供商配置密钥。