feat(gate): route prompt-selection through mcpd server Llm (credential tiering) #87
Reference in New Issue
Block a user
Delete Branch "feat/gate-selection-via-mcpd-llm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Per the credential-tiering principle: cloud/server keys live at mcpd/k8s; mcplocal handles only personal tokens. The gate previously used mcplocal's local heavy provider (the user's OAuth token → 404s). Now LlmPromptSelector tries the project's server Llm via mcpd infer first, falling back to the local personal-token provider.
Validated live: the sre gate failure reason moved from Anthropic-HTTP-404 to server-path timeout, proving the server path engages; POST /llms/vllm-current/infer returns valid selection JSON. Deployed as
2729580.Known residual (ops, not code): qwen3-thinking takes ~40s (always reasons), exceeding the gate's 8s responsiveness budget → graceful degradation to priority-ordering until a FAST server Llm is served (or a real key lights up anthropic-fallback as a fast selection model). mcplocal suite green (755).
🤖 Generated with Claude Code