Skip to content

Instantly share code, notes, and snippets.

@cedricvidal
Created December 15, 2025 18:12
Show Gist options
  • Select an option

  • Save cedricvidal/35e1f6e598712604dfd92cfc98d8e4d5 to your computer and use it in GitHub Desktop.

Select an option

Save cedricvidal/35e1f6e598712604dfd92cfc98d8e4d5 to your computer and use it in GitHub Desktop.
How to capture stdin and stdout of an MCP server
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "bash",
"args": [
"-c",
"tee mcp-in.jsonl | mcp-server | tee mcp-out.jsonl"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment