pica
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePica — Universal Integrations for AI
Pica — 面向AI的通用集成方案
Pica gives your AI agent the ability to interact with 200+ third-party platforms — Gmail, Slack, HubSpot, Stripe, Notion, Linear, and more. The user has already installed the Pica CLI and run , so the MCP server is configured and ready.
pica initYour job: whenever the user needs to work with an external platform or integration, use Pica.
Pica 可让你的AI Agent与200+第三方平台进行交互,包括Gmail、Slack、HubSpot、Stripe、Notion、Linear等。用户已完成Pica CLI的安装并执行了,因此MCP服务器已配置就绪。
pica init你的任务:每当用户需要与外部平台或集成功能交互时,使用Pica。
When This Skill Activates
触发此Skill的场景
Step 1: Check what's connected
Immediately call the MCP tool to see:
list_pica_integrations- Which platforms are available
- Which connections the user has active
- The connection keys needed to execute actions
This tells you what the user can do right now and what's missing.
Step 2: Route the request
- Connection exists for the platform the user needs → Use the MCP tool workflow below to fulfill the request.
- Connection does NOT exist → Tell the user and offer to add it via . See the "Adding a Missing Connection" section below.
pica add <platform> - User is browsing / exploring → Show them what's connected and suggest what they can do, or run to browse everything available.
pica platforms
步骤1:查看已连接的平台
立即调用 MCP工具,查看:
list_pica_integrations- 可用的平台列表
- 用户已激活的连接
- 执行操作所需的连接密钥
这能让你了解用户当前可执行的操作以及缺失的配置。
步骤2:路由请求
- 用户所需的平台已存在连接 → 使用下方的MCP工具工作流来完成请求。
- 用户所需的平台未建立连接 → 告知用户并通过帮助其添加连接。详情见下方“添加缺失的连接”章节。
pica add <platform> - 用户正在浏览/探索 → 展示已连接的平台并建议可执行的操作,或运行查看所有可用平台。
pica platforms
MCP Tool Workflow
MCP工具工作流
This is the standard 4-step workflow for any integration task:
以下是处理任何集成任务的标准4步工作流:
1. List integrations and connections
1. 列出集成与连接
list_pica_integrationsReturns all available platforms and the user's active connections with their connection keys. Always start here to get the connection key you'll need.
list_pica_integrations返回所有可用平台以及用户的活跃连接和对应的连接密钥。必须从此步骤开始,获取后续所需的连接密钥。
2. Find the right action
2. 找到对应的操作
get_pica_platform_actions(platform: "gmail")Returns all available actions for a platform. Use the exact kebab-case platform name from step 1 (e.g., , , , ).
gmailhubspotgoogle-calendarship-stationget_pica_platform_actions(platform: "gmail")返回指定平台的所有可用操作。使用步骤1中获取的短横线分隔格式(kebab-case)的平台名称(例如:、、、)。
gmailhubspotgoogle-calendarship-station3. Read the action docs (REQUIRED)
3. 查阅操作文档(必填)
get_pica_action_knowledge(platform: "gmail", action_id: "<action_id>")Returns full API documentation — parameters, requirements, caveats, and examples. You must call this before executing any action. Skipping this step will lead to malformed requests.
get_pica_action_knowledge(platform: "gmail", action_id: "<action_id>")返回完整的API文档,包括参数、要求、注意事项和示例。执行任何操作前必须调用此工具,跳过此步骤会导致请求格式错误。
4. Execute the action
4. 执行操作
execute_pica_action(platform: "gmail", action: {_id, path, method}, connectionKey: "live::gmail::default::abc123", ...)Performs the actual operation. Pass the connection key from step 1, the action details from step 2, and any required data/params from step 3.
execute_pica_action(platform: "gmail", action: {_id, path, method}, connectionKey: "live::gmail::default::abc123", ...)执行实际操作。传入步骤1获取的连接密钥、步骤2获取的操作详情,以及步骤3中要求的必要数据/参数。
Key concepts
核心概念
- Connection key: Identifies which authenticated connection to use. Format: . Get from
live::gmail::default::abc123orlist_pica_integrations.pica list - Action ID: Identifies a specific API action. Get from results.
get_pica_platform_actions - Platform name: Kebab-case identifier (,
gmail,hubspot,google-calendar). Get fromship-station.list_pica_integrations
- 连接密钥:标识要使用的已认证连接。格式:。可通过
live::gmail::default::abc123或list_pica_integrations获取。pica list - 操作ID:标识特定的API操作。可通过的结果获取。
get_pica_platform_actions - 平台名称:短横线分隔格式的标识符(、
gmail、hubspot、google-calendar)。可通过ship-station获取。list_pica_integrations
Adding a Missing Connection
添加缺失的连接
When the user needs a platform that isn't connected yet:
- Tell the user the platform isn't connected and offer to add it.
- Run:
bash
pica add <platform>This opens a browser for OAuth authentication. The CLI polls until the connection is live (up to 5 minutes).
- Once connected, proceed with the MCP tool workflow above.
If the user isn't sure which platform they need, run:
bash
pica platformsThis shows all 200+ available platforms organized by category. Supports to filter (e.g., ).
-c <category>pica platforms -c "CRM"当用户需要的平台尚未连接时:
- 告知用户该平台未连接,并提供添加选项。
- 执行:
bash
pica add <platform>此命令会打开浏览器进行OAuth认证。CLI会轮询直到连接生效(最长5分钟)。
- 连接完成后,按照上述MCP工具工作流继续操作。
若用户不确定需要哪个平台,可执行:
bash
pica platforms此命令会按类别展示所有200+可用平台。支持参数进行过滤(例如:)。
-c <category>pica platforms -c "CRM"CLI Reference
CLI参考
| Command | Description |
|---|---|
| Set up API key and install MCP |
| Connect a platform via OAuth |
| List connections with keys |
| Browse available platforms |
Aliases: = list, = platforms.
pica lspica pAll commands support for machine-readable output.
--json| 命令 | 描述 |
|---|---|
| 设置API密钥并安装MCP |
| 通过OAuth连接平台 |
| 列出带密钥的连接 |
| 浏览可用平台 |
别名: = list, = platforms。
pica lspica p所有命令均支持参数以输出机器可读格式。
--jsonHow it works
工作原理
All API calls route through Pica's passthrough proxy, which injects auth credentials, handles rate limiting, and normalizes responses. Connection keys tell Pica which credentials to use — you never touch raw OAuth tokens.
所有API请求均通过Pica的直通代理路由,该代理会注入认证凭据、处理速率限制并标准化响应。连接密钥用于告知Pica使用哪些凭据——你无需直接接触原始OAuth令牌。
Troubleshooting
故障排查
pica: command not found
pica: command not foundpica: command not found
pica: command not foundPica CLI is not installed or not in PATH.
bash
npm install -g @picahq/cliIf it's installed but not found, add the npm global bin to PATH:
bash
export PATH="$(npm prefix -g)/bin:$PATH"Pica CLI未安装或未加入PATH。
bash
npm install -g @picahq/cli若已安装但仍提示未找到,将npm全局bin目录添加到PATH:
bash
export PATH="$(npm prefix -g)/bin:$PATH"MCP tools not available
MCP工具不可用
The agent needs to be restarted after MCP installation. For Claude Desktop, quit and reopen. For Claude Code, start a new session. If MCP was never installed, run .
pica init安装MCP后需重启Agent。对于Claude Desktop,需退出并重新打开;对于Claude Code,需开启新会话。若从未安装MCP,请执行。
pica initNo connections found
No connections foundNo connections found
No connections foundNo apps have been connected yet. Run (or any platform) to connect one.
pica add gmail尚未连接任何应用。执行(或其他平台)进行连接。
pica add gmailConnection shows failed
or degraded
faileddegraded连接显示failed
或degraded
faileddegradedThe OAuth token expired or was revoked. Reconnect:
bash
pica add <platform>Or reconnect from the dashboard at https://app.picaos.com/connections.
Invalid API key
Invalid API keyInvalid API key
Invalid API keyThe key is wrong, expired, or not a valid Pica key. Get a new one at https://app.picaos.com/settings/api-keys. Keys start with or . Run to update.
sk_live_sk_test_pica init密钥错误、过期或并非有效的Pica密钥。请前往https://app.picaos.com/settings/api-keys获取新密钥。密钥以`sk_live_`或`sk_test_`开头。执行`pica init`更新密钥。
Links
相关链接
| What | Where |
|---|---|
| Pica Dashboard | https://app.picaos.com |
| Get API key | https://app.picaos.com/settings/api-keys |
| Manage connections | https://app.picaos.com/connections |
| Browse integrations | https://app.picaos.com/tools |
| Documentation | https://docs.picaos.com |