# get\_config

Get the newest configuration that loaded, with defaults filled in, connection strings redacted, and the server's build version.

read-only · idempotent · MCP tool · [Config](https://komrad.dev/latest/api/config.md)

A [`config_error`](https://komrad.dev/latest/api/config/get-config.md#komrad-config-v1-GetConfigResponse-config_error) means komrad refused the newest edit to the config file and keeps the last configuration that loaded.

## Calling it

```bash
curl -X POST http://127.0.0.1:8787/komrad.config.v1.ConfigService/GetConfig \
  -H 'Content-Type: application/json' \
  -d '{}'
```

```bash
komrad rpc get-config
```

```json
{
  "name": "get_config",
  "arguments": {}
}
```

Offered by the komrad MCP server to orchestrator agents.

## Request

### Empty

No fields.

## Response

### GetConfigResponse

| Field | Type | Description |
| --- | --- | --- |
| [`config`](https://komrad.dev/latest/api/config/get-config.md#komrad-config-v1-GetConfigResponse-config) | json | The newest configuration that loaded, keyed as in the config file, with defaults filled in and connection strings redacted. |
| [`config_error`](https://komrad.dev/latest/api/config/get-config.md#komrad-config-v1-GetConfigResponse-config_error) | string | Why komrad refused the newest edit to the config file. Unset when the newest edit loaded. When set, [`config`](https://komrad.dev/latest/api/config/get-config.md#komrad-config-v1-GetConfigResponse-config) holds the last configuration that loaded. |
| [`version`](https://komrad.dev/latest/api/config/get-config.md#komrad-config-v1-GetConfigResponse-version) | string | The build version of the server. |
