Skip to content

Load config TOML from stdin #1428

Description

@2uasimojo

With #1374 => #1404 => #1423, it's no longer possible to stand up the server for most sane use cases without a config file. This is sometimes painful: e.g. in a cluster environment, you now have to create a separate object (ConfigMap/Secret) and mount it.

In many CLIs, flags that take a file path will accept - to mean "stdin". Currently we don't do that, but it would be pretty easy, and would assuage the above pain point, allowing syntax like:

cat <<EOF | ./kubernetes-mcp-server --config -
port = 8080
# Production-safe configuration
read_only = true
EOF

or (terser but less readable):

./kubernetes-mcp-server --config - <<<$(printf 'port = 8080\n# Production-safe configuration\nread_only = true')

Activity

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