Using Filesystem MCP as default tool for work with files
Description
I'm starting to try using MCP servers. I've noticed that Kilocode often uses standard tools rather than FileSystem MCP commands.
I tried creating a rule prohibiting the use of standard file editing tools and strictly using FileSystem MCP. I've attached my rule to the message.
But as far as I can see, it mostly helps; it usually uses built-in methods unless I explicitly specify FileSystem MCP in chat.
How else can I force Kilocode to work with files through MCP?
I'll add: The rule is created in the kilocode. But it doesn't always use FileSystem MCP.
I often see that when I manually write "use FileSystem MCP to work with files," it accesses the MCP without specifying the command and file, meaning it makes an erroneous request.
If I write "use FileSystem MCP" and the access rule is specified in your instructions, it usually generates the correct command.
As I see, all the necessary information is in the system prompt and my rule. But this doesn't always work. However, when explicitly specified in the user request text, it does work.
Now I start every task with: Using Filesystem MCP, the rules for using it are in your instructions.
But I want to somehow simplify and optimize this aspect.
If there was an option to set a user prompt, not to a role, but to a user's chat message, I suspect the stability of working with MCP would be much higher. What do you think?
Is it possible to override commands for the read and edit tool groups? Replace the standard tool commands with MCP server commands?
Perplexity says you can use kilocode.config.json or add the following to settings.json:
"kilocode.tools.read_file.enabled": false,
"kilocode.tools.search_files.enabled": false,
"kilocode.tools.list_files.enabled": false,
"kilocode.tools.list_code_definition_names.enabled": false,
"kilocode.tools.apply_diff.enabled": false,
"kilocode.tools.write_to_file.enabled": false,
"kilocode.tools.use_mcp_tool.enabled": true,
"kilocode.tools.use_mcp_tool.alias": [
"read_file",
"search_files",
"list_files",
"list_code_definition_names",
"apply_diff",
"write_to_file"
],
"kilocode.tools.use_mcp_tool.defaultServer": "filesystem",
"kilocode.tools.use_mcp_tool.toolMapping": {
"read_file": {
"toolName": "read_file",
"server": "filesystem"
},
"search_files": {
"toolName": "search_files",
"server": "filesystem"
},
"list_files": {
"toolName": "list_directory",
"server": "filesystem"
},
"list_code_definition_names": {
"toolName": "search_files",
"server": "filesystem",
"args": { "pattern": "*.ts" }
},
"apply_diff": {
"toolName": "write_file",
"server": "filesystem"
},
"write_to_file": {
"toolName": "write_file",
"server": "filesystem"
}
},
But I'm afraid he's lying, since it still hasn't worked.
Closing this one out since it's been inactive for a while — not because it's a bad issue, just that older items tend to lose context over time and we'd rather start fresh if this is still a problem.
Please feel free to reopen (or open a new issue) if you're still running into this. We're happy to take another look! 🙏