-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathconfig.oauth.example.yaml
More file actions
58 lines (53 loc) · 2.67 KB
/
Copy pathconfig.oauth.example.yaml
File metadata and controls
58 lines (53 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Example MCP Confluent Server configuration — OAuth connection.
#
# Generate `config.yaml` from this template with:
# npx @confluentinc/mcp-confluent --init-oauth-config
#
# OAuth authenticates against Confluent Cloud via PKCE; no API keys to
# provision. The browser sign-in opens automatically on server start; tools
# that depend on OAuth begin working once sign-in completes. OAuth-eligible
# tools auto-enable — there are no per-service blocks like there are for
# direct (api-key) connections. Resource IDs (cluster_id, env_id, etc.) are
# passed as tool arguments at call time rather than declared here.
# --- Server ---
# MCP server transport, authentication, and logging settings.
# All fields are optional — uncomment and edit only what you need.
# (See `config.example.yaml` for the fully-annotated server block; the same
# fields apply here. Stdio users can leave the entire block commented out.)
# server:
# transports: [stdio]
# log_level: "${LOG_LEVEL:-info}"
# http:
# port: ${HTTP_PORT:-8080}
# host: "${HTTP_HOST:-127.0.0.1}"
# mcp_endpoint: "${HTTP_MCP_ENDPOINT_PATH:-/mcp}"
# sse_endpoint: "${SSE_MCP_ENDPOINT_PATH:-/sse}"
# sse_message_endpoint: "${SSE_MCP_MESSAGE_ENDPOINT_PATH:-/messages}"
# auth:
# # api_key: "${MCP_API_KEY}"
# allowed_hosts:
# - localhost
# - "127.0.0.1"
# # disabled: true
connections:
# Connection id is freeform. The `type: oauth` declaration is the only
# required field.
ccloud-oauth:
type: oauth
# Optional human-readable label for this connection, echoed back by the
# `list-configured-connections` tool so an agent can tell your connections apart.
# A blank value is treated as no description.
description: "Confluent Cloud (OAuth login)"
# Read-only policy (default false). With `read_only: true`, every tool that
# mutates state is auto-disabled for this connection — only read-only tools
# stay enabled (a tool's posture comes from its `readOnlyHint` annotation,
# so there is nothing to configure per-tool). This is the recommended
# posture for pointing an agent at a production Cloud login while keeping
# full read/write on a dev connection. Uncomment to lock this one down:
# read_only: true
# librdkafka `debug` contexts to emit on stderr for this OAuth connection's
# native Kafka client. Reach for it when an OAuth/OAUTHBEARER SASL handshake
# misbehaves and you need to see which side broke — works the same in
# production as in dev. Common values: "security,broker,protocol", "all".
# The output is verbose; turn it off again once the investigation is done.
# kafka_debug: "${OAUTH_KAFKA_DEBUG:-security,broker,protocol}"