CogLake User Guide
External apps & API

API and MCP connection

Connect an MCP client and use search, document, original-file, and graph tools safely.

MCP endpoint

The built-in Streamable HTTP MCP endpoint is:

https://your-coglake.example/api/coglake/mcp

Clients that support OAuth discovery can use this URL directly. CogLake publishes protected-resource and authorization-server metadata, supports PKCE, and can dynamically register compatible clients when enabled by the flow.

A generic client configuration using a bearer token looks like:

{
  "mcpServers": {
    "coglake": {
      "type": "http",
      "url": "https://your-coglake.example/api/coglake/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_SCOPED_API_KEY"
      }
    }
  }
}

Prefer OAuth instead of copying an API key into an interactive third-party client.

  1. 1Authorize a scoped client
  2. 2Search visible knowledge
  3. 3Inspect citations and links
  4. 4Open permitted originals
  5. 5Revoke when finished

Available tools

ToolPurposeRequired permission
documents.listList visible documents with connector filtering and paginationknowledge:read
retrieval.searchSearch visible knowledge with profile and explanation controlssearch:read
retrieval.answerProduce an answer from visible citationssearch:read
retrieval.get_chunkFetch a permitted matching section by IDknowledge:read
documents.getFetch a permitted document and stable file identityknowledge:read
documents.get_linksFollow visible outgoing document linksknowledge:read
documents.get_original_linkCreate a temporary authenticated original-file URLknowledge:read
graph.get_neighborsTraverse permitted graph neighbors with bounded depth and node countknowledge:read

Deep research workflow

Use documents.list to browse the authorized catalog when you do not yet have a search phrase. Follow its returned continuation cursor; an empty page is not necessarily the end if a next cursor is present. Cursors belong to the current user, organization and filters; restart listing if a cursor expires or access changes.

An agent can search for an account or topic, open the best document, inspect its links, traverse related nodes, and request the original file when needed. Each step is independently permission-checked, including direct IDs supplied by the client.

Search controls

MCP search and answer calls accept the same retrieval profiles used by Discover, including auto, balanced, exact, semantic, graph, research, and fast. Request an explanation when the client should expose why a result was selected.

Revoke access

Revoke an API key, OAuth application, or connected grant from My settings → Developer access → Agent access. Refresh tokens rotate and are invalid after revocation.

On this page