The current release supports local
stdio transport only. It does not provide a hosted MCP URL or OAuth flow. You need a local build of the MCP executable; your lev8 contact can provide the executable or build access.Prerequisites
- A local lev8 MCP executable.
- An active API key with the scopes required by the tools you call.
- The API base URL
https://app.lev8.com.
./cmd/mcp:
Configure your MCP client
The server reads its API address and Token from the process environment. The Token is not a tool argument and is never exposed in tool schemas.Tools
entity_search_create defaults limit to 20. entity_search_fetch defaults pts to 0 and num to 5, with a maximum num of 500.
Entity Search workflow
1
Create
Call
entity_search_create and save leads_search_id from the structured result.2
Monitor
Call
entity_search_status until the state becomes done or error. You can begin fetching as soon as ready_count is positive.3
Fetch
Call
entity_search_fetch. Advance pts by the returned count until all ready_count results have been read.error can still have ready results. Fetch them before closing the task.
Idempotency and retries
The MCP server generates a cryptographically random key whenentity_search_create or contact_search omits idempotency_key. Supply your own stable key when an Agent workflow may be resumed or replayed.
The first release does not automatically retry paid POST operations. If a tool call ends without a known response, resolve or replay the original logical request with the same key rather than starting a second request with a new key.
Security boundaries
- The server connects only to the base URL fixed at process startup; tool inputs cannot select another URL.
- HTTP redirects are not followed.
- The adapter does not connect directly to lev8 databases, queues, or caches.
- API-key validation, billing, task ownership, and concurrency enforcement remain server-side.
- The adapter does not offer Token creation, listing, or revocation tools.
- Objective text, search results, contact details, Tokens, and complete HTTP bodies are not written to MCP logs.
- HTTP and upstream errors are mapped to stable tool errors without exposing response bodies or internal request details.