> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get MCP server activity

> Proxies the MCP server's activity feed (agent sessions and tool calls) with server-side enrichment: timestamps are formatted with the platform's date settings and each session/call is labeled with the tenant or key name resolved from its API-key hint. Always returns 200 — when the MCP server is unreachable or auth fails, the payload carries an `error` message and an `errorKind` of "unreachable" or "auth" with empty session/call arrays.



## OpenAPI

````yaml /openapi.yaml get /api/v1/mcp/activity
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/mcp/activity:
    get:
      tags:
        - MCP
      summary: Get MCP server activity
      description: >-
        Proxies the MCP server's activity feed (agent sessions and tool calls)
        with server-side enrichment: timestamps are formatted with the
        platform's date settings and each session/call is labeled with the
        tenant or key name resolved from its API-key hint. Always returns 200 —
        when the MCP server is unreachable or auth fails, the payload carries an
        `error` message and an `errorKind` of "unreachable" or "auth" with empty
        session/call arrays.
      parameters:
        - name: since
          in: query
          required: false
          schema:
            type: string
          description: >-
            Only return activity after this server timestamp (from a previous
            response's server_time; default 0 for everything)
      responses:
        '200':
          description: Activity feed (or an error payload with empty arrays)
          content:
            application/json:
              schema:
                type: object
                properties:
                  server_time:
                    type: number
                  sessions:
                    type: array
                    items:
                      type: object
                  calls:
                    type: array
                    items:
                      type: object
                  error:
                    type: string
                  errorKind:
                    type: string
                    enum:
                      - auth
                      - unreachable
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````