An MCP server runs on the same laptop as the AI application, launched as a subprocess. Which transport fits?
- Exam domain
- Model Context Protocol (MCP)
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
Stdio
MCP has two transports. Stdio uses standard input and output between local processes; Streamable HTTP is for remote servers.
Remember: Local subprocess: stdio.
In detail
- Local subprocess: stdio.
- Remote server: Streamable HTTP.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. gRPC streamingWrong
gRPC is not an MCP transport.
B. StdioRight
Local subprocess: stdio.
C. Streamable HTTP with OAuthWrong
Streamable HTTP is for remote servers.
D. WebSockets over a VPNWrong
WebSockets are not an MCP transport.
Use case
An illustrative scenario, not a real incident.
Illustrative: a developer adds a local math server to an agent, and the agent starts it as a subprocess over stdio.
See it in different ways
flowchart TD
Q{"Where does the server run?"}
Q -->|"Same machine"| A0["Stdio"]
Q -->|"Remote"| A1["Streamable HTTP"]How to read this chart
- At "Where does the server run?": if "Same machine", go to "Stdio"; if "Remote", go to "Streamable HTTP".
sequenceDiagram participant P0 as Host process participant P1 as Server subprocess P0->>P1: JSON-RPC on stdin P1-->>P0: Responses on stdout
How to read this chart
- 1. Host process sends "JSON-RPC on stdin" to Server subprocess.
- 2. Host process gets a reply from Server subprocess: "Responses on stdout".