MCP Tool Call custom formatting
I wrote a custom MCP server here: https://github.com/createthis/diffcalculia_mcp
It is the MCP implementation of this simple prompt: https://github.com/createthis/diffcalculia?tab=readme-ov-file#open-hands-ai---no-str_replace_editor
When the patch tool call happens, it looks like this:
If you drill down into those arguments, they look like this:
{
"path": "/workspace/original.txt",
"diff": "--- /workspace/original.txt\n+++ /workspace/original.txt\n@@ -1,4 +1,3 @@\n test\n two\n-three\n four"
}
That's not at all human readable, unfortunately.
Ideally, I'd like to see that displayed exactly as this markdown:
--- /workspace/original.txt
+++ /workspace/original.txt
@@ -1,4 +1,3 @@
test
two
-three
four
I checked the MCP spec and unfortunately I don't see anything like argument documentation decorators or diff schemas.
Is there already a system in place to do this?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for over 30 days with no activity.