config_key
MCP tools › Workspace and files
One configuration key from the project's own sources: definitions in application*.properties/.yml (with profile and value as written), usages in Java sources (@Value, @ConfigProperty, @Property; with prefix also @ConfigurationProperties/@ConfigMapping prefixes), and the effective value for the active profile with value_profile. Relaxed binding as for @Value. Values of keys named like password, secret, token, key or credential are returned as •••. Ask by key or by a position in a Java or configuration file. Read-only.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | workspace.config_key |
|---|---|
| Area | Workspace and files |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
key | string | The configuration key, as a @Value placeholder would name it (shop.max-items). |
path | string | Instead of key: a workspace-relative Java or configuration file, with line and
column of a place inside the key. |
line | integer | 0-based line of the place in path.minimum 0 |
column | integer | 0-based column (chars) of the place in path.minimum 0 |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project config_keyInput schema as JSON
{ "type": "object", "properties": { "key": { "description": "The configuration key, as a `@Value` placeholder would name it (`shop.max-items`).", "type": [ "string", "null" ] }, "path": { "description": "Instead of `key`: a workspace-relative Java or configuration file, with `line` and\n`column` of a place inside the key.", "type": [ "string", "null" ] }, "line": { "description": "0-based line of the place in `path`.", "type": [ "integer", "null" ], "minimum": 0 }, "column": { "description": "0-based column (chars) of the place in `path`.", "type": [ "integer", "null" ], "minimum": 0 } }}