Add startup warnings for missing tool secrets
Summary
When a tool declares requires_secrets=['API_KEY'] but the secret is not configured, the error currently only surfaces when the tool is called. This can lead to delayed discovery of misconfigurations.
Proposal
Add startup warnings (not errors) for missing secrets. The server should still start and operate normally, but log visible warnings like:
⚠ Tool 'fetch_data' declares secret 'API_KEY' which is not set
Tool will return an error if called. Set API_KEY to enable.
Why
- Faster feedback: Developers see config issues immediately on server start
- No friction: Server still starts, other tools still work (maintains current lazy validation behavior)
- CI/CD visibility: Warnings in logs help catch issues in deployment pipelines
- Better DX: "I started the server and immediately knew what was missing"
Current Behavior
Secrets are validated lazily at tool call time (_check_tool_requirements in server.py:872-891). This is correct and should remain. The warning would be additive.
Suggested Location
During _start() in server.py, after load_from_catalog() completes, iterate through tools and log warnings for any with unsatisfied secret requirements.
Related
This feature is being added to the TypeScript implementation of arcade-mcp-server for consistency.
Linked to https://linear.app/arcadedev/issue/TOO-198/add-startup-warnings-for-missing-tool-secrets
This issue was addressed in https://github.com/ArcadeAI/arcade-mcp/pull/712