Integration checklist
A safe, mock-first sequence for coding agents that add Social SDK to an existing application and verify the result.
Use this sequence when integrating Social SDK into an existing application.
- Identify the required platform, operation, content formats, runtime, and tenant model.
- Select a direct or managed backend from current capability evidence.
- Keep all credentials and native clients in server-only modules.
- Build the account membership check before accepting an account reference from application input.
- Implement the flow with the deterministic testing backend and explicit scenarios.
- Preserve per-target outcomes. Do not translate
scheduled,accepted,processing, orunknownstates into published. - Handle uncertain writes through status reconciliation before retrying.
- Add provider-specific webhook verification before parsing or acknowledging events.
- Verify the installed package in the application itself: run the application’s type check (for example
npx tsc --noEmit) so every import resolves against@opencoredev/social-sdk, run the mock flow in a test, and runnpx social-sdk capabilities --adapter <name> --jsonto confirm the route declares the operations you use. The repository’s packed-consumer and release checks are for SDK maintainers, not application integrators. - If the application hands social actions to an AI agent, expose them through
@opencoredev/social-sdk/aior@opencoredev/social-sdk/mcpwith the sameAuthorizationPolicy, and keep write tools in the default confirm mode. See AI agent tools and MCP server. - Request human credentials, platform approval, mutation authorization, or spend authorization only for the remaining live step.
While you integrate, npx social-sdk mcp --adapter <name> gives your coding agent offline capability lookup and publish-request validation over MCP.
The documentation site is static. It publishes Markdown pages and llms.txt, but it does not advertise a live MCP endpoint. Use the repository’s integration skill for the complete implementation workflow once its examples and commands have been verified against the released package.