Skip to content

A top-level server: block is documented and used in an example, but never read #153

Closed

Description

@jrosskopf

What

docs/spec/components/config-system.md:215 shows the main configuration as

project-name: my-project
server:
  port: 8080

and examples/flapi-bigquery-procedure.yaml:20-22 ships

server:
  port: 8080
  host: 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

  1. added a commit that references this issue on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions