translation/translated/documents/course/02-agent-tools-mcp/08-getting-zapier-mcp-url.md

17 lines
702 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 获取 Zapier MCP URL
首先,您需要获取一个 Zapier MCP URL。这通常需要
1. 如果您没有 Zapier 账户,则创建一个 Zapier 账户
2. 通过添加一些工具来设置 Zapier MCP 集成(在此示例中我们将使用 Gmail
3. 获取您唯一的 MCP URL
对于此示例,我们将使用环境变量来存储 URL
```bash
# 将此添加到您的 .env 文件中
ZAPIER_MCP_URL=https://your-zapier-mcp-url.zapier.app
```
使用环境变量是存储 API URL 等敏感信息的良好实践。它将 URL 保持在代码之外,使其更易于管理和更安全。它还允许您为不同环境(开发、暂存、生产)使用不同的 URL而无需更改代码。