@ekanos/sdk/mcp is workspace-only and not in the published package.
Root: @ekanos/sdk
Types only. Every export is a type, so it is importable from client and server code. Contains the integration contract and capability context types.
Exports include:
IntegrationMetadata— host-resolved integration metadata (product id, slug, name, category)IntegrationContext— thectxtypeStorageSchemas— schema map types- Component prop types:
IntegrationComponentProps,MarketplaceTileProps,ActivationFormProps - Data types:
HealthCheckResult,ActivationResult,IntegrationConfig
Components: @ekanos/sdk/components
Client only. UI components for widgets, forms, and marketplace tiles.
Exports include:
Widget— compound component API for dashboard widgetsBaseActivationForm— form wrapper with dialog chromeOAuthActivationForm— OAuth variantBaseMarketplaceTile— generic marketplace card- Context providers:
WidgetContext,WidgetPreviewProvider - Utilities:
AiPromptChip,WidgetAskBar,currentReturnPath()
Hooks: @ekanos/sdk/hooks
Client only. Hooks for forms, activation, OAuth, and storage access.
Exports include:
useActivateIntegration()— submit the activation formuseDeactivateIntegration()— disconnectuseOAuthConnectionStatus()— check OAuth stateuseIntegrationAction()— call widget actionsuseIntegrationFetch()/IntegrationFetchProvider— the fetch a widget’s queries should use (defaults toglobalThis.fetchoutside a provider; no client-side egress enforcement)useActivationData()/IntegrationActivationDataProvider— activation data in widgets (nulloutside a provider)fetchIntegrationStorage()— readclientReadablestorage keyspartnerOAuthConnectPath(),partnerOAuthStatusUrl()— OAuth flow helpers- Event bus:
useWidgetEventBus(),useWidgetEvents()
Context: @ekanos/sdk/context
Isomorphic, dependency-pure. Error types, validation, and matcher utilities.
Exports include:
- Error classes:
EgressDeniedError,SecretAccessError,StorageValidationError - Validators:
assertStorageKeyDeclared(),parseStorageValue() - Matchers:
isEgressAllowed(),isStorageKeyClientReadable() - Utilities:
requireContext(),resolveStorageKeyDeclaration()
Testing: @ekanos/sdk/testing
Test only. Mock context and invocation helpers.
Exports include:
createMockContext()— in-memory context with schema validation and egress enforcementinvokeWebhook()— run a webhook handler with payload validationinvokeSchedule()— run a schedule handlerinvokeActivate()— run an activation hookcreateMockFetchProvider()— fixture-backed fetch for widget tests- Types for recording fetch calls and logs
Integration: @ekanos/sdk/integration
Isomorphic, dependency-pure. Definition authoring, validation, and types.
Exports include:
defineIntegration()— define your integration (validates at import time)validateIntegrationDefinitions()— batch validation and collision detectionIntegrationDefinitionSchema— the canonical zod schema- Definition types:
PartnerToolModule,PartnerWidgetDeclaration,PartnerWebhookDeclaration,PartnerScheduleDeclaration,PartnerOAuthDeclaration,PartnerActionDeclaration,WebhookSignatureScheme,OnActivateHandler, and related types parseCronExpression()— validate 5-field cron syntaxPublicActionError— throw from an action handler to show its message to the user verbatim
MCP: @ekanos/sdk/mcp — NOT PUBLISHED
Workspace only, not in the tarball. This entrypoint is excluded from the published package and cannot be imported from an installed @ekanos/sdk.
Tools are declared as PartnerToolModule from @ekanos/sdk/integration, whose run receives only the capability IntegrationContext. /mcp holds host machinery, not an authoring contract.
Import patterns
Summary table
Total: 167 exported names across 7 entrypoints.