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
A top-level server: block is documented and used in an example, but never read #153
docs/spec/components/config-system.md:215 shows the main configuration as
project-name: my-projectserver:
port: 8080
and examples/flapi-bigquery-procedure.yaml:20-22 ships
server:
port: 8080host: 0.0.0.0
Nothing reads a server: block.config_manager.cpp never looks up config["server"]; the real keys are top-level http-port (plus -p/--port, FLAPI_PORT) and the host via --host / FLAPI_HOST.
Found while fixing #151, which is the same class (documented, never read) for mcp.port, mcp.host and mcp.allow-list-changed-notifications. It was left out of that change deliberately: #151's approach was decided for the MCP keys, and this is a different key family.
Why it matters
Both current uses happen to set 8080, the default, so neither misbehaves visibly today. An operator who copies the pattern with a different port will get a server on 8080 and no indication why. CLAUDE.md already warns about exactly this class of key.
Suggested fix
The same as #151: remove the server: block from config-system.md and the example (using http-port where a port is meant), and warn at startup when a top-level server: block is present, naming the keys that actually work.
Activity
Merge pull request #161: reject a server: block, which flAPI never re…