Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Modal 4 min read Release mediumAdept

Introducing: Modal 1.0

Modal's Python client SDK reaches 1.0, promising far fewer breaking changes and organized around three API design principles. Implicit "automounting" of local imports is replaced by explicit `Image.add_local_python_source`. Concurrency settings move out of `@app.function` into a separate `@modal.concurrent` decorator with options like `target_inputs`. `modal.Mount` is deprecated so local files are added only through `modal.Image`. Client releases will now be batched, and SDKs for other languages and agent-oriented ergonomics are planned next.

Related posts

  • Agents need good developer experience too

    Modal easyNovice

    Developer experience principles that make humans productive also help coding agents, because both depend on tight write-run-observe feedback loops. Modal's framework covers programmatic access through a CLI, SDK and API instead of UI-only features, actionable error messages that act as high-signal context for limited context windows, and consistent runnable examples with explanations next to the code. It also argues for defining infrastructure in Python alongside application logic rather than in YAML, and for concise, intuitive naming, such as renaming `concurrency_limit` to `max_containers`.

  • Augment Your LiveKit Agent with Modal GPUs

    Modal mediumAdept

    LiveKit agents can offload custom or open-weights models to Modal serverless GPUs, demonstrated with a BitHuman Expression video avatar voiced by Qwen3-TTS. The BitHuman container's /launch endpoint returns as soon as the avatar joins the room, which conflicts with Modal Servers scaling on in-flight requests. Modal's Sticky Sessions solve this by letting the agent open a session before calling /launch and close it when the call ends, holding the container slot for the session's duration. GPU snapshots hide cold starts that would otherwise require reloading gigabytes of model weights.

  • How to Build an MCP Server with Gradio

    Hugging Face mediumAdept

    Gradio apps become Model Context Protocol servers by passing mcp_server=True to launch(), which auto-converts each Python function into an MCP tool, using its docstring and type hints to build the description and input schema. The server is exposed over SSE at /gradio_api/mcp/sse. Claude Desktop, which lacks SSE support, can reach it through mcp-remote via npx. Newer features include decorators for MCP resources and prompts, MCP-only functions via gr.api(), automatic file and base64 conversion, per-tool latency and success metrics, and free hosting on Hugging Face Spaces with bearer-token auth for private Spaces.

  • Five Big Improvements to Gradio MCP Servers

    Hugging Face mediumAdept

    Gradio 5.38.0 adds five features for building MCP servers. A "File Upload" MCP server lets agents send local files to remote Gradio apps, and progress notifications now stream to MCP clients. `gr.load_openapi` turns an OpenAPI spec into an MCP server in one line, `gr.Header`-typed arguments extract auth headers and list them in the connection docs, and the `api_description` parameter overrides auto-generated tool descriptions. Short code examples cover the OpenAPI loader, header-based auth and custom descriptions.

  • Modal's serverless KV store gets its limit raised to infinity

    Modal mediumAdept

    Modal's Dict key-value primitive now has unlimited storage, durability, a 7-day TTL that is refreshed on both reads and writes (previously 30 days since last write with a 10GiB cap), and a `skip_if_exists` flag on `.put()` that works as a distributed lock. Together these give LRU-like caching and exactly-once coordination across containers. A worked example builds a request cacher that dedupes bursts of identical requests. It writes a pending entry with `skip_if_exists`, stores the spawned function-call handle as in_progress, then stores the completed result, so the expensive backend function runs only once.

The quest for software engineering knowledge.

Look:
Layout: