| name | setup |
| description | Set up Fiber AI tools in the current environment. Use when the user needs to configure API keys, verify MCP connection, or install SDKs. |
| user-invocable | true |
| argument-hint | (no arguments needed) |
Fiber AI Setup
Configure Fiber AI for the current environment.
When to Use
- User says "setup fiber", "install fiber", "configure fiber"
- MCP tools are not responding or returning authentication errors
- User is missing an API key or needs to verify their configuration
- First time using Fiber AI in this environment
Setup Steps
1. Check API Key
Check if the FIBER_API_KEY environment variable is set in the current shell.
- If set: verify it works by calling the credits endpoint via Core MCP:
call_operation("getOrgCredits", {"query": {"apiKey": "..."}})
If the call succeeds, show "Fiber AI is connected" with the credit balance.
- If not set: instruct the user to:
- Get their API key from https://fiber.ai/app/api
- Set it as an environment variable:
export FIBER_API_KEY=sk_live_...
- For persistence, add the export to their shell profile (
~/.zshrc or ~/.bashrc)
2. Verify MCP Connection
After the API key is configured:
- Try calling a Core MCP tool like
list_all_endpoints to verify connectivity
- If successful: confirm "Fiber AI MCP is connected and working."
- If unsuccessful: check that the editor supports HTTP (Streamable HTTP) MCP transport and that network access to
mcp.fiber.ai is not blocked
3. SDK Installation (Optional)
Only if the user intends to write application code (not just use MCP tools):
- TypeScript:
npm install @fiberai/sdk
- Python:
pip install fiberai
4. Quick Verification
Suggest the user run a quick test to confirm everything works:
Try running /fiber:search "technology companies in San Francisco" to verify your setup.
Authentication Notes
- For POST/PATCH/PUT API endpoints:
apiKey is passed in the request body
- For GET API endpoints:
apiKey is passed in the query string
- Check https://api.fiber.ai/docs/ for the exact authentication format per endpoint
Troubleshooting
- MCP not connecting: verify the editor supports HTTP (Streamable HTTP) MCP transport
- Authentication errors (401): API key is invalid or expired — regenerate at https://fiber.ai/app/api
- Insufficient credits (402): top up at https://www.fiber.ai/app/subscription
- Rate limit errors (429): wait a moment and retry
- Network errors: ensure outbound HTTPS to
mcp.fiber.ai is allowed by firewall or proxy
For AI agents: machine-readable docs