Skip to content

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.

Capabilityworkspace.config_key
AreaWorkspace and files
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
keystringThe configuration key, as a @Value placeholder would name it (shop.max-items).
pathstringInstead of key: a workspace-relative Java or configuration file, with line and column of a place inside the key.
lineinteger0-based line of the place in path.minimum 0
columninteger0-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.

Terminal window
ferris-idea call ~/my-project config_key
Input 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
}
}
}