News for hackers. Stuff that matters.
Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by rahimnathwani on Wednesday March 19, 2025 @10:55AM (#43412844)
For anyone trying this at home, if you want a starting point, you could use OP's, or you could use the official Filesystem API: https://github.com/modelcontextprotocol/servers/tree/main/sr... There are folks using just this filesystem API for coding: https://x.com/Zirkman/status/1897003182049649000

I'm not sure I would prefer it to using Cursor. I was using Claude Desktop client to edit a bunch of (non-code) text files a couple of days ago, and a couple of times it crashed, and I had to restart it. When this happened, it lost some conversation history, although of course the files it had already edited were fine.

There are other approaches to having Claude edit files, but they're less suited for use with MCP (and hence they don't save cost like the OP does).

A) Aider gives very specific instructions about how Claude should describe patch operations: https://github.com/Aider-AI/aider/blob/dd4d2420df51dc29c2aed...

This works, but I don't know if anyone has tried using this technique in an MCP server. It seems like the way OP and the Filesystem MCP might be superior for small edits, but Aider's approach might be better for multiple edits in a single request-response. It should be possible to do this with an MCP server.

B) Anthropic provides fine-tuned models (text_editor_20250124 and text_editor_20241022) that know a specific text editing protocol: https://docs.anthropic.com/en/docs/build-with-claude/tool-us...

You could build a coding assistant like Aider on top of these, but obviously you're then tied to this implementation and it's harder to switch out models. And it wouldn't work with Claude Desktop.

Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by ezyang on Wednesday March 19, 2025 @11:15AM (#43413103)
I don't really recommend using filesystem MCP directly, it won't checkpoint changes so it's easy to end up in a state where you can't recover an older working version of the code. Use an actual coding oriented MCP.
Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by rahimnathwani on Wednesday March 19, 2025 @12:05PM (#43413816)
I'm going to try out yours (https://github.com/ezyang/codemcp). I already pay for Cursor, but I'm curious.
Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by ezyang on Wednesday March 19, 2025 @01:17PM (#43414745)
And if you don't like clicking, even once, check out my other project, Refined Claude :)
Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by rahimnathwani on Wednesday March 19, 2025 @01:35PM (#43414999)
Wow. You should go on baby leave more often!
Re:Hacking Your Own AI Coding Assistant with Claude Pro and MCP by dang on Wednesday March 19, 2025 @04:52PM (#43417211)
Related ongoing thread:

Show HN: Codemcp – Claude Code for Claude Pro subscribers – ditch API bills - https://news.ycombinator.com/item?id=43356016 - March 2025 (3 comments)