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
feat(gatekeeper): add Vertex AI support and refactor configuration
Add first-class support for the Vertex AI provider in the gatekeeper system. The configuration structure has been refactored to accommodate separate settings for each provider type.
Copy file name to clipboardExpand all lines: docs/config-reference.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,18 +58,21 @@ These are used when `LINUX_MCP_TOOLSET` is set to `run_script` or `both`.
58
58
| Option / Env Var | Default | Description |
59
59
| ---------------- | ------- | ----------- |
60
60
|`--always-confirm-scripts` / `--no-always-confirm-scripts`<br>`LINUX_MCP_ALWAYS_CONFIRM_SCRIPTS`|`False`| All scripts must be confirmed by the user |
61
-
|`--gatekeeper.provider`<br>`LINUX_MCP_GATEKEEPER__PROVIDER`|`openai` (inferred from model if unset) | LLM provider: `openai`, `anthropic`, `gemini`, or `openrouter`|
62
-
|`--gatekeeper.backend`<br>`LINUX_MCP_GATEKEEPER__BACKEND`|`direct`| API backend: `direct` or `vertex` (GCP/Vertex AI) |
61
+
|`--gatekeeper.provider`<br>`LINUX_MCP_GATEKEEPER__PROVIDER`|`openai` (inferred from model if unset) | LLM provider: `openai`, `anthropic`, `gemini`, `openrouter`, or `vertex_ai`|
63
62
|`--gatekeeper.model`<br>`LINUX_MCP_GATEKEEPER__MODEL`|_(none)_| Required: provider-native model ID (e.g. `gpt-5.4`, `claude-sonnet-4-6`, `gemini-2.0-flash`, `openai/gpt-oss-120b` for OpenRouter) |
|`--gatekeeper.base_url`<br>`LINUX_MCP_GATEKEEPER__BASE_URL` / `OPENAI_API_BASE`|`https://api.openai.com/v1`| OpenAI-compatible API base URL (OpenAI provider only) |
66
-
|`--gatekeeper.project`<br>`LINUX_MCP_GATEKEEPER__PROJECT` / `VERTEXAI_PROJECT`|_(none)_| GCP project for Vertex backends |
67
-
|`--gatekeeper.location`<br>`LINUX_MCP_GATEKEEPER__LOCATION` / `VERTEXAI_LOCATION`|`global`| GCP region for Vertex backends |
68
63
|`--gatekeeper.reasoning_effort`<br>`LINUX_MCP_GATEKEEPER__REASONING_EFFORT`|_(model specific)_| Reasoning effort (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`). Not all values are supported for all models. |
69
64
|`--gatekeeper.structured_output`<br>`LINUX_MCP_GATEKEEPER__STRUCTURED_OUTPUT`|`True`| Whether to use structured JSON output from the model |
70
65
|`--gatekeeper.temperature`<br>`LINUX_MCP_GATEKEEPER__TEMPERATURE`| 0.0 | Temperature to use for the model |
71
-
|`--gatekeeper.template_kwargs`<br>`LINUX_MCP_GATEKEEPER__TEMPLATE_KWARGS`|_(none)_|_Not usually needed_ - Extra chat-template arguments for OpenAI-compatible servers (e.g. llama.cpp `enable_thinking`), sent as `chat_template_kwargs` on Chat Completions requests. JSON object, e.g. `{ "enable_thinking": false }`|
72
-
| Provider credentials |_(none)_|`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY` / `GEMINI_API_KEY`, or `OPENROUTER_API_KEY` for direct backends; `GOOGLE_APPLICATION_CREDENTIALS` for Vertex backends |
66
+
|`--gatekeeper.cost`<br>`LINUX_MCP_GATEKEEPER__COST`|_(none)_| Gatekeeper cost for accounting (`input$/token:output$/token`) |
67
+
|`--gatekeeper.openai.base_url`<br>`LINUX_MCP_GATEKEEPER__OPENAI__BASE_URL` / `OPENAI_API_BASE`|`https://api.openai.com/v1`| OpenAI provider: API base URL |
68
+
|`--gatekeeper.openai.template_kwargs`<br>`LINUX_MCP_GATEKEEPER__OPENAI__TEMPLATE_KWARGS`|_(none)_| OpenAI provider: extra chat-template arguments (e.g. llama.cpp `enable_thinking`), sent as `chat_template_kwargs`|
69
+
|`--gatekeeper.openrouter.base_url`<br>`LINUX_MCP_GATEKEEPER__OPENROUTER__BASE_URL`|`https://openrouter.ai/api/v1`| OpenRouter provider: API base URL |
|`--gatekeeper.openrouter.template_kwargs`<br>`LINUX_MCP_GATEKEEPER__OPENROUTER__TEMPLATE_KWARGS`|_(none)_| OpenRouter provider: extra chat-template arguments |
72
+
|`--gatekeeper.vertex_ai.project`<br>`LINUX_MCP_GATEKEEPER__VERTEX_AI__PROJECT` / `VERTEXAI_PROJECT`|_(none)_| Vertex AI provider: GCP project |
73
+
|`--gatekeeper.vertex_ai.location`<br>`LINUX_MCP_GATEKEEPER__VERTEX_AI__LOCATION` / `VERTEXAI_LOCATION`|`global`| Vertex AI provider: GCP region |
74
+
|`--gatekeeper.vertex_ai.base_url`<br>`LINUX_MCP_GATEKEEPER__VERTEX_AI__BASE_URL`|_(computed)_| Vertex AI provider: override OpenAI-compatible MaaS endpoint URL (default derived from project/location) |
75
+
| Provider credentials |_(none)_|`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY` / `GEMINI_API_KEY`, or `OPENROUTER_API_KEY` for direct providers; `GOOGLE_APPLICATION_CREDENTIALS` for `vertex_ai`|
0 commit comments