Skip to main content
Devolens hosts a remote MCP (Model Context Protocol) server at:
Once connected, your AI agent can work directly with your Devolens account, using only the permissions you grant.

Getting started

You can sign in through your browser with OAuth or connect with an access token.

Enable MCP access (for OAuth)

OAuth is available only for company accounts and is off by default. To turn it on, open Connected Apps and click Enable MCP Access.

Connect a client

Run /mcp inside Claude Code to start the authorization flow.
When the client connects for the first time, your browser opens a Devolens authorization page. Sign in and choose the exact permissions the client should have. These are the same permissions used by access tokens, and presets are available for common setups such as read-only access, usage analytics, license operations, and customer management.
Devolens creates an access token named Devolens MCP OAuth for each connection. In Connected Apps, you can check a client’s permissions or click Revoke to disconnect it.

Authenticate with an access token

Instead of the browser-based authorization flow (OAuth), you can authenticate by sending an existing access token in the token header. This is useful for headless environments, CI pipelines, and automations, or when you want to reuse a token whose permissions you have already narrowed down.
In Claude Code:
You can create and manage access tokens here. We recommend creating a dedicated token for each MCP client with only the permissions it needs.

Security recommendations

  • Grant the minimum permissions for the task. Key and customer write permissions are only needed if the agent should change your account.
  • Data returned by the tools is processed by the AI model you use, so only grant read access to data you are comfortable sharing with your AI provider.
  • Usage analytics and license reports require a subscription with analytics access and Usage Analytics permission. Reports can include license keys and customer IDs. Customer names, company names, and email addresses additionally require Get Customers permission. Other key and customer permissions can expose further details, such as notes and machine codes.
  • When you authenticate with an access token, you can additionally use feature lock for data masking to hide individual fields, such as notes, from license key responses.
  • Review Connected Apps periodically and revoke connections you no longer use.
  • Every tool call is executed as a regular Web API request, so MCP activity is recorded in the Web API log and can be audited like any other API usage.

Available Tools

Example prompts

FAQ

Yes. Ask “Were any licenses created today across my account?” An agent with access to the Web API log can look for a new license (state 3010) or a new trial (3011) and check the event’s UTC time. Returning an existing trial (3012) is a separate event. One matching creation is enough to answer yes. If the license still exists, the agent can use its product ID and key to show you the details.An account-wide log search requires Get Web API Log permission with both Product Lock and Key Lock set to 0. With a negative Key Lock, supply the product ID and license key in the request. Web API log permissionsIf the log is unavailable or the recent events show no match, the agent can check the license records. For “How many licenses were created today?”, it can list your products and add up each product’s filtered count for the UTC day. A complete count covers all products in scope and excludes licenses that have since been deleted. Counting licenses by creation date
Ask “Which licenses expire in the next 90 days and last had recorded API activity more than 30 days ago?” The agent can call ai_getExpiringLicenses with Window=90d and LastSeenDays=30. Each matching license includes its lastSeenUtc. Licenses with no recorded activity are counted separately in pageActivity.noRecordedActivity. To cover every candidate, follow pageActivity.nextPage until it is null, even when a page has no matches. Expiring license report
Call ai_getFloatingCapacityLicenses with the product, the start of the 30-minute UTC interval in Unix seconds, and MinUtilizationPercent. Omit CapacityMode to include licenses exactly at the threshold, exactly at capacity, and over capacity. For example, these arguments select licenses using at least 90% of their seats in product 3349 at 12:00 UTC on October 1, 2026.
Read total for the matching license count across all pages. For each license, compare floatingMachines with maxNoOfMachines. The separate nodeMachines field counts node-locked machines. When present, nextFloatingExpiryUtc is the earliest active lease expiry known at the current observation. A renewal can move that time.To explain a change, pass the license’s productId and keyId to ai_getFloatingCapacityHistory. For example, changeKind=2 means the floating count changed and changeKind=6 means both the floating count and the seat limit changed. A carried baseline and an appended current observation have a null changeKind. History point fields
The total covers licenses with a tracked machine count and a positive machine limit at the time shown. For example, “18 observed node-locked machines across 7 tracked licenses” tells you both the count and its coverage. Other licenses can have a configured limit without having a tracked observation. A machine observed on two licenses counts once for each license.For a product trend, the agent can read nodeLockedSnapshot from ai_getFloatingCapacity. A daily snapshot uses the closing 30-minute UTC interval, or the current interval today. The agent can also request half-hourly snapshots. Each percentage uses the combined recorded limits of the licenses in that snapshot. Check the tracked license count when comparing dates. A missing snapshot means usage is unknown, while zero machines on a tracked snapshot is a measured zero. Product capacity reportFor one license, ai_getFloatingCapacityHistory shows its observed node-locked count and configured limit as they changed. An opening observation can establish the count at the start of the date range. Periods before tracking began or after it stopped have unknown usage. License capacity history
Your MCP client and its approval settings determine whether you are asked to confirm a change. Once the MCP server receives an authorized write request, it forwards it to the Web API to perform the change.MCP does not use the separate review card and Confirm button in Ask Devolens. Check your client’s approval settings before granting permissions to create, edit or delete records.
Key usage summaries contain lifetime totals. Their Start and End filters select licenses whose recorded activity spans overlap those dates; the counters still include activity outside the selected range. For product or account totals over specific dates, use daily aggregates.These results update asynchronously and may require more than one page. A small log sample can help investigate an incident, but it cannot establish an overall failure rate or prove there were no other failures. An activation failure rate uses failed activations divided by successful plus failed activations, rather than all API requests.