Packages

PackagePurposeKey exports
@agentora/coreContracts, the s schema builder, router, manifest IR, JSON Schema compiler, error taxonomy. Isomorphic, zero-dep.defineContract, router, s, toManifest, toJsonSchema, toStrictJsonSchema, resolveJsonSchema, registerVendorConverter, AgentoraError
@agentora/serverRuntime (validate → middleware → handler → validate), createApp, implement, defineAction, streaming, context.createApp, implement, defineAction, router, AnyApp
@agentora/server/middlewareCross-cutting middleware + the pluggable store.trace, auth, idempotency, concurrency, retry, redact, memoryStore
@agentora/mcpMCP server adapter (stdio + Streamable HTTP) over the low-level Server.toMcp, createServer, listTools, callTool
@agentora/mcp/oauthOAuth 2.1 resource-server protection for the MCP HTTP transport.oauthResourceServer, protectedResourceMetadata
@agentora/ai-sdkVercel AI SDK tool adapter.aiSdkTools
@agentora/openaiOpenAI Chat + Responses tool specs.openaiChatTools, openaiResponsesTools
@agentora/httpFetch-style HTTP handler with structured error codes + discovery.toFetchHandler
@agentora/clientTyped client built from contracts only. Browser-safe.createClient
@agentora/client/reactReact hooks over the typed client.useAction
@agentora/cliCLI adapter + the agentora bin (dev/doctor/gen).toCli, manifestJson
@agentora/doctorAgent-readiness linter / score over the manifest.doctor, RULES

Error taxonomy

All surfaces share AgentoraError with a typed code: VALIDATION, UNAUTHENTICATED, FORBIDDEN, NOT_FOUND, CONFLICT, RATE_LIMITED, CANCELLED, INTERNAL. Each adapter maps these to its own shape — HTTP status, MCP isError, a rejected client promise.