Skip to content

Releases

Limb 0.1.0

Choose a tag to compare

@RSafargalin RSafargalin released this 30 Nov 17:24

Limb 0.1.0 ships a Swift MCP client and server for stdio and Streamable HTTP, with built-in HTTP OAuth coordination and an English and Russian user guide.

English guide · Руководство на русском

Changes

  • Swift SDK. Define tools with @Tool or ToolDefinition, generate JSON Schema with @Schema, validate tool arguments, and exercise handlers in memory with LimbTesting. The Swift client can discover capabilities, call tools, read and subscribe to resources, fetch prompts, and request completions.
  • Transports and revisions. stdio and Streamable HTTP support MCP 2025-03-26, 2025-06-18, 2025-11-25, and 2026-07-28. Streamable HTTP adds modern MRTR, subscriptions, and x-mcp-header, and supports legacy sessions with configurable SSE and bounded replay. See the transport guide for revision-specific features.
  • HTTP authorization. Use a fixed bearer token or the OAuth coordinator for discovery, authorization, and token refresh. On 2025-11-25 and 2026-07-28, applications can opt into a bounded scope step-up retry. The application supplies browser integration, issuer trust, and subject verification. The server delegates token verification and access policy to the application.

Requirements and limits

Use Swift 6.2 or later. The macOS examples require macOS 26 or later. Launching a subprocess through the Swift stdio client is available on macOS. The built-in HTTP server listens on IPv4 loopback. SSE replay and credentials held by the OAuth coordinator are stored in memory.

Upgrading from the pre-release

  • Pin 0.1.0 in SwiftPM. Add LimbHTTPClient or LimbHTTPServer to targets that use Streamable HTTP.
  • Update exhaustive switches over ClientError to handle httpAuthorizationRejected and httpPreparationFailed.
  • For legacy peers, send initialize as a separate frame and use string or integer request IDs. Declare elicitation capabilities as objects and use flat form schemas.
  • Custom handlers should return a terminal result, or omit resultType when Limb should supply it. Use an application error code outside the reserved range. Omit argument keys to use Swift defaults, and give prompt arguments unique names.
  • For JSON Schema 2020-12, use dependentRequired and dependentSchemas. Select draft-07 to use dependencies. FoundationJSON preserves the number representation. Use doubleValue to convert to binary floating point.

Verification

On macOS arm64, optimized tests passed with Swift 6.2 and 6.4.2 on both JSON codecs. The attached MCP Inspector report records the stdio checks for four revisions on both codecs. The pinned MCP Conformance suite exercised 117 HTTP scenarios per codec for the 2025-11-25 and 2026-07-28 client and server profiles.

По-русски

Limb 0.1.0 включает Swift-клиент и сервер MCP для stdio и Streamable HTTP, OAuth-координатор, макросы @Tool и @Schema и тестовые фикстуры LimbTesting. Поддерживаются четыре ревизии MCP. Для Streamable HTTP доступны MRTR и подписки в современной ревизии, а также сессии, SSE и ограниченное воспроизведение в ревизиях 2025 года.

Для обновления укажите 0.1.0 в SwiftPM. Подключите LimbHTTPClient или LimbHTTPServer в HTTP-целях и обработайте новые случаи ClientError в исчерпывающих switch. Примеры требуют Swift 6.2+ и macOS 26+. Встроенный HTTP-сервер слушает IPv4 loopback. OAuth-координатор и SSE replay хранят данные в памяти. Установка, примеры и конфигурация описаны в русском руководстве.