Supported platforms
Prerequisites
- A Flespi account at flespi.io.
- Access to the Flespi panel to create and manage API tokens.
- For production workloads, an ACL token with permissions scoped to the modules CloudThinker needs.
Setup
CloudThinker connects to Flespi via their official MCP server using a Flespi API token.1
Create a Flespi account
Sign up at flespi.io if you don’t have an account.
2
Generate an API token
In the flespi panel, navigate to Tokens in the left menu and click the ”+” button:
- Name:
CloudThinker Agent - Type: Standard (development) or ACL (production)
- TTL: Set expiration — e.g.,
7776000(90 days). Flespi requires all tokens to have a TTL or expiration date.
3
Add connection in CloudThinker
Navigate to Connections → Flespi and enter the token you just generated.
4
Test connection
Click Connect. CloudThinker verifies the token and shows a Connected status.
Connection details
Required permissions
Token types
Token expiration
Flespi requires all tokens to expire. Set at least one:ttl— seconds of inactivity before expiration (resets on each API call)expire— Unix timestamp for hard expiration
Recommended ACL permissions (production)
Read-only (minimum):
Read-write (if write operations needed):
ACL tokens deny everything by default. Only explicitly granted permissions are allowed. A token with POST on
gw/devices will not have GET unless also granted.Agent capabilities
Once connected, agents can:Available MCP tools
Free tools (0 credits):
Paid tools:
AI credits
Monitor usage via the AI tile in the flespi panel, the
GET /ai/logs API, or MQTT topic flespi/log/ai/#.
Verify the connection
Example prompts
Troubleshooting
Invalid or expired access token
Invalid or expired access token
- Token may have expired — check TTL and expiration settings in the flespi panel.
- Create a new token and update the connection in CloudThinker.
- Expired tokens are automatically deleted by flespi.
Action is not permitted by ACL
Action is not permitted by ACL
- Your ACL token lacks the required module + HTTP method combination.
- Update the token ACL to grant the needed permission.
- Remember: ACL is deny-all by default — each permission must be explicitly granted.
HTTP 403 on AI tools
HTTP 403 on AI tools
- Monthly AI credits are exhausted.
- Free plan: wait for next month. Commercial plan: check overage settings.
- Monitor credit usage via
GET /ai/logsor event code1710.
HTTP 429 rate limit
HTTP 429 rate limit
- flespi calculates combined API + MQTT + traffic usage per minute.
- Reduce request frequency or batch operations.
- The highest-usage token gets blocked first; other tokens continue working.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Dedicated token — create a separate token for CloudThinker; never share it across integrations or use a Master token
- ACL for production — use ACL tokens with only the minimum required permissions; ACL tokens are deny-all by default
Related
MCP Connection
Custom MCP integrations
Kubernetes Connection
Container orchestration for IoT workloads