Skip to main content
Connect your Flespi account to enable CloudThinker agents to manage GPS devices, monitor telemetry, inspect channels and streams, and operate fleet infrastructure through the Flespi MCP server. Flespi authenticates with an API token (Standard or ACL type) generated in the Flespi panel.

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.
Copy the 64-byte token immediately.
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.
Flespi uses FlespiToken — not Bearer — as the authorization prefix. CloudThinker handles this automatically, but keep it in mind if debugging API calls manually.

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
For long-running integrations, use ttl (e.g., 7776000 = 90 days). The timer resets on every API call, so active tokens won’t expire unexpectedly.
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

  • 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.
  • 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.
  • Monthly AI credits are exhausted.
  • Free plan: wait for next month. Commercial plan: check overage settings.
  • Monitor credit usage via GET /ai/logs or event code 1710.
  • 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.
  • IP whitelist is configured on the token but your server IP is not included.
  • Update the token’s IP whitelist in flespi panel: Token settings → IPs whitelist.

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

MCP Connection

Custom MCP integrations

Kubernetes Connection

Container orchestration for IoT workloads