---
search:
  tags:
    - Project Keys
    - GET
seo:
  description: >-
    Returns authoritative MCP tool scoping config for… Reference for the GET
    /project-keys/{project_key_id}/mcp-config endpoint in the Streamkap REST
    API.
sidebar:
  label: Get Project Key Mcp Config
  badge: GET
title: Get Project Key Mcp Config
type: openapi-operation
---
Returns authoritative MCP tool scoping config for server-side enforcement.

Called by the MCP server on session start to verify tool_profile, allowed_tools,
and blocked_tools - preventing credential file tampering.

`GET /project-keys/{project_key_id}/mcp-config`

**Responses**

- `200` — Successful Response
- `422` — Validation Error

Response example, 200:

```json
{
  "project_key_id": "string",
  "tenant_id": "string",
  "service_id": "string",
  "kafka_username": "string",
  "tool_profile": "full",
  "allowed_tools": [
    "string"
  ],
  "blocked_tools": [
    "string"
  ]
}
```
