You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 994ede4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/feature-servers/mcp-server.md
+39-3Lines changed: 39 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,21 +37,25 @@ A `feast-mcp` console script is also installed. It is equivalent to `feast mcp`,
37
37
*`--config`: Path to the `feast_mcp.yaml` config file
38
38
*`--feast-url`: URL of the feature server to proxy. Mounts the `features` tools
39
39
*`--registry-url`: URL of the REST registry server to proxy. Mounts the `registry` tools
40
+
*`--feast-cert`: CA certificate used to verify the feature server's TLS certificate, for example when it is self-signed. Without it, the default trust store is used
41
+
*`--registry-cert`: CA certificate used to verify the registry server's TLS certificate
40
42
*`--timeout`: HTTP timeout in seconds for calls to Feast (default: 30)
41
43
42
44
**Server options:**
43
45
*`--transport`: MCP transport to serve: `stdio`, `http`, `streamable-http`, or `sse` (default: `stdio`)
44
46
*`--host`: Bind address for HTTP transports (default: `0.0.0.0`). Use `::` to serve both IPv6 and IPv4 clients; it falls back to `0.0.0.0` where IPv6 is unavailable.
45
47
*`--port`: Bind port for HTTP transports (default: 8000)
46
48
*`--workers`: Run under gunicorn with this many workers. Not supported by the `sse` transport
49
+
*`--tls-cert`: TLS certificate for serving the HTTP transports over HTTPS. Must be set together with `--tls-key`
50
+
*`--tls-key`: TLS private key for `--tls-cert`
47
51
48
52
**Authentication options:**
49
53
*`--auth-mode`: `passthrough`, `kubernetes` or `oidc` (default: `passthrough`)
50
54
*`--oidc-discovery-url`: OIDC discovery document URL. Required with `--auth-mode oidc`
51
55
*`--oidc-client-id`: OIDC client id. Required with `--auth-mode oidc`
52
56
*`--oidc-client-secret`: OIDC client secret
53
57
*`--oidc-audience`: Expected OIDC token audience
54
-
*`--base-url`: Public base URL of this server, used to build OAuth redirect URIs (default: `http://localhost:<port>`)
58
+
*`--base-url`: Public base URL of this server, used to build OAuth redirect URIs (default: `http://localhost:<port>`, or `https://localhost:<port>` when `--tls-cert` is set)
55
59
56
60
**Logging options:**
57
61
*`--log-level`: Log level (default: `INFO`)
@@ -78,12 +82,16 @@ server:
78
82
host: 0.0.0.0
79
83
port: 8000
80
84
# workers: 4 # gunicorn; not supported with sse
85
+
# tls_cert: /certs/tls.crt # serve HTTPS; set together with tls_key
86
+
# tls_key: /certs/tls.key
81
87
82
88
# At least one of features.url / registry.url is required.
83
89
features:
84
90
url: http://localhost:6566
91
+
# cert: /certs/ca.crt # CA to verify an https:// feature server
@@ -219,7 +231,7 @@ See [sdk/python/feast/mcp/docker/README.md](https://github.com/feast-dev/feast/b
219
231
220
232
## Deploying with the Feast Operator
221
233
222
-
Setting `spec.services.mcpServer` adds a dedicated `feast mcp` container to the FeatureStore deployment, exposed on its own Service on port 8100. The operator sets `--host` and `--port` so that they match the generated Service. `--host` is `0.0.0.0` unless `spec.services.mcpServer.dualStack` is `true`, which sets it to `::` and needs an image with `feast mcp --host ::` support (#6977). Every other setting comes from a `feast_mcp.yaml` supplied in a ConfigMap, which the operator mounts read-only at `/etc/feast/mcp`.
234
+
Setting `spec.services.mcpServer` adds a dedicated `feast mcp` container to the FeatureStore deployment, exposed on its own Service (container port 8100, or 8101 with [TLS](#tls)). The operator sets `--host` and `--port` so that they match the generated Service. `--host` is `0.0.0.0` unless `spec.services.mcpServer.dualStack` is `true`, which sets it to `::` and needs an image with `feast mcp --host ::` support (#6977). Every other setting comes from a `feast_mcp.yaml` supplied in a ConfigMap, which the operator mounts read-only at `/etc/feast/mcp`.
223
235
224
236
The ConfigMap must set `server.transport` to `http`, `streamable-http` or `sse`, because the default `stdio` cannot serve the Service. Without a ConfigMap, the operator passes `--transport http`, unless `FEAST_MCP_TRANSPORT` is set in the container `env`.
225
237
@@ -273,7 +285,31 @@ spec:
273
285
274
286
A CEL validation rule enforces that at least one Feast service is available: either `onlineStore` is not disabled (omitting it is fine — the operator defaults an online feature server), or `registry.local.server.restAPI` is `true`.
275
287
276
-
> **Note:** Operator-managed TLS is not yet supported for the MCP server. The `tls` field is ignored. The embedded `metrics` and `workerConfigs` fields are also ignored for `mcpServer`; set `server.workers` in the ConfigMap if you need multiple gunicorn workers.
288
+
### TLS
289
+
290
+
Set `spec.services.mcpServer.tls` to serve the MCP endpoint over HTTPS. It takes the same fields as `tls` on the other servers: `secretRef`names a Secret holding the certificate and key (`tls.crt` and `tls.key` by default, changed with `secretKeyNames`). The operator then:
291
+
292
+
* mounts the Secret at `/tls/mcpserver/` and adds `--tls-cert` and `--tls-key` to the `feast mcp` command, which needs an image with that support (#7178)
293
+
* listens on container port 8101 instead of 8100
294
+
* exposes the Service on port 443 and switches the startup, liveness and readiness probes to HTTPS
295
+
296
+
On OpenShift, TLS is on by default with a service serving certificate, as for the other Feast servers. Set `tls.disable: true` to serve plain HTTP instead.
297
+
298
+
```yaml
299
+
mcpServer:
300
+
config:
301
+
configMapRef:
302
+
name: sample-mcpserver-config
303
+
tls:
304
+
secretRef:
305
+
name: mcp-server-tls
306
+
```
307
+
308
+
Use `mcpServer.tls` rather than `server.tls_cert` and `server.tls_key` in `feast_mcp.yaml`. The operator only switches the Service and probes to HTTPS when `tls` is enabled, so TLS turned on from the ConfigMap alone fails the plain HTTP probes.
309
+
310
+
To verify an HTTPS feature or registry server, set `features.cert` or `registry.cert` in `feast_mcp.yaml` to a CA file, and mount that file with `spec.services.volumes` and `mcpServer.volumeMounts`.
311
+
312
+
> **Note:** The embedded `metrics` and `workerConfigs` fields are ignored for `mcpServer`; set `server.workers` in the ConfigMap if you need multiple gunicorn workers.
0 commit comments