Design Python and TypeScript interoperability patterns, including MCP-style tool contracts and typed boundaries.