Having trouble running claude -p commands over MCP.
This works fine via CLI: sprite -s mcp-hello-world exec claude -p "What are the top 3 headlines on Fox News"
But it does not work for me as expected via MCP:
{
“callId”: “call_3gA3P4mCiKhnrsIRwSEjPsiB”,
“invocation”: {
“server”: “sprites”,
“tool”: “exec”,
“arguments”: {
“sprite”: “mcp-hello-world”,
“cmd”: “claude -p "What are the top 3 headlines on Fox News"”
}
},
“durationMs”: 6766,
“result”: {
“type”: “success”,
“content”: [
{
“type”: “text”,
“text”: “\u0001It looks like your message got cut off. Could you finish your question?\n\u0003\u0000”
}
],
“structuredContent”: null,
}
}
Codex figured out a workaround, but this is unexpected behavior:
{
“callId”: “call_PE2biZgruAANBYOZO6hnytXV”,
“invocation”: {
“server”: “sprites”,
“tool”: “exec”,
“arguments”: {
“sprite”: “mcp-hello-world”,
“cmd”: “claude -p What_are_the_top_3_headlines_on_Fox_News”
}
},
“durationMs”: 23140,
“result”: {
“type”: “success”,
“content”: [
{
“type”: “text”,
“text”: “\u0001Here are the top 3 headlines on Fox News today (April 24, 2026):\n\n1.US and China compete for foothold on the moon\n2. Trump issues ‘shoot and kill’ order for boats placing mines in Strait of Hormuz\n3. US accuses China of ‘industrial-scale’ campaigns to steal AI secrets ahead of Trump’s Beijing trip\n\nSources:\n- Fox News - Breaking News Updates | Latest News Headlines\n\u0003\u0000”
}
],
}
}