Skip to main content

I/O and integration

Inferlets that talk to the outside world: HTTP servers, HTTP clients, MCP servers, the OpenAI Responses protocol, and SDK concurrency tests.

HTTP and embedded servers

InferletWhat it shows
http-serverwasi:http/incoming-handler server with SSE streaming.
image-fetchwstd::http::Client to fetch and decode images.
openresponsesOpenResponses-compliant HTTP API.

MCP

InferletWhat it shows
mcp-exampleConnects to a registered MCP server, lists tools, and calls one (Rust).
mcp-example-pySame in Python.
mcp-example-jsSame in JavaScript.

SDK concurrency tests

InferletWhat it shows
py-concurrency-testConcurrency test for the Python SDK.
js-concurrency-testConcurrency test for the JS SDK.
  • HTTP: outbound HTTP from inside an inferlet.
  • MCP: connecting to host-registered MCP servers.
  • Filesystem: the sandboxed /scratch directory.
  • Session: the channel back to the launching client.