Skip to content

--validate-config rejects examples/flapi.yaml: an MCP prompt file is validated as an endpoint #156

Closed

Description

@jrosskopf

What

flapi -c examples/flapi.yaml --validate-config (run from examples/) exits 1:

✗ Endpoint: customer_data_analysis
  ERROR: template-source cannot be empty
✗ Validation FAILED
  1 error(s)

customer_data_analysis is not an endpoint. It is an MCP prompt defined in examples/sqls/customers/customers-mcp-prompt.yaml (name: customer_data_analysis, template: | — a prompt body, no template-source). The validator treats every YAML under the templates directory as an endpoint, so a prompt or resource file is reported as an endpoint with an empty template source.

The server itself starts fine on that config (the integration suite runs against it), so the two disagree about what a valid configuration is.

Why it matters

--validate-config is the command operators are told to run in CI before a deploy, and flAPI's own shipped example fails it — so it cannot be used as a gate on any config that defines a prompt or resource. examples/flapi-test.yaml fails the same way.

Found while writing a test for #153 that validates the shipped examples; that test had to exclude both.

Expected

--validate-config should validate prompt and resource files as what they are (or skip them), and pass on every shipped example.

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