# Devolens / Cryptolens — how to use (mcp.ai)

Connect your Devolens / Cryptolens account and use 10 tools for developer tools straight from your AI agent. Connect with your own API key. Devolens provides the Cryptolens software licensing API for managing products, license keys, customers, usage analytics, and entitlements.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_devolens?ms=1787295720000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `devolens_get_license_key`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/devolens`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/devolens/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/devolens/get/license/key` — Retrieve one license key and optional activation metadata by its product ID and key string. The token must enable the Get Key method.
  - body: { product_id: integer, license_key: string, include_metadata?: boolean }
- `POST https://api.mcp.ai/api/devolens/list/customers` — Search or list customers visible to the connected Cryptolens account, including reseller-visible customer groups returned by the API. The token must enable the Get Customers method.
  - body: { limit?: integer, search?: string, customer_id?: integer, newest_first?: boolean, include_id_in_search?: boolean }
- `POST https://api.mcp.ai/api/devolens/list/daily/usage/aggregates` — Return one page of daily Cryptolens usage aggregates, optionally filtered by product and inclusive date range. Pass next_cursor back with the same filters to continue forward. The token must enable th
  - body: { limit?: integer, end_date?: string, product_id?: integer, start_date?: string, next_cursor?: integer }
- `POST https://api.mcp.ai/api/devolens/list/license/keys` — List and search one page of license keys for a Cryptolens product. Call List Products first when the product ID is unknown, then pass next_cursor back to continue through additional pages. The token m
  - body: { order_by?: string, global_id?: integer, product_id: integer, next_cursor?: integer, search_query?: string }
- `POST https://api.mcp.ai/api/devolens/list/license/templates` — Return the license templates available to the connected Cryptolens account. The token must enable the Get License Templates method.
- `POST https://api.mcp.ai/api/devolens/list/license/users` — Return registered Cryptolens license users, optionally limited to one customer. The token must enable the UserAuthAdmin method group.
  - body: { customer_id?: integer }
- `POST https://api.mcp.ai/api/devolens/list/messages` — Return Cryptolens account messages, optionally filtered by channel or creation time. The token must enable the Get Messages method.
  - body: { channel?: string, created_after?: integer }
- `POST https://api.mcp.ai/api/devolens/list/products` — Return the Cryptolens products visible to the connected access token. Use this first to obtain product IDs required by license-key tools. The token must enable the Get Products method.
- `POST https://api.mcp.ai/api/devolens/list/resellers` — Search or list resellers visible to the connected Cryptolens account. The token must enable the Reseller method group.
  - body: { limit?: integer, search?: string, reseller_id?: integer }
- `POST https://api.mcp.ai/api/devolens/list/web/api/logs` — Inspect one page of Cryptolens Web API request logs with optional product, license-key, machine, event, and time filters. Pass next_cursor back to continue when one is returned. The token must enable 
  - body: { limit?: integer, product_id?: integer, event_types?: string[], license_key?: string, next_cursor?: integer, time_filter?: object, machine_code?: string, friendly_name?: string, include_anomaly_classification?: boolean }

## Example prompts
- "What can I do in Devolens / Cryptolens?"
- "Show me a summary of my Devolens / Cryptolens account"

## More
- Page: https://mcp.ai/devolens
- Agent spec (llms.txt): https://mcp.ai/devolens/llms.txt
- Postman collection: https://mcp.ai/devolens/postman.json
