Install
$ agentstack add mcp-primitivedotdev-sdks ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Primitive SDKs
[](https://github.com/primitivedotdev/sdks/actions/workflows/sdk-checks.yml)
Monorepo for the Primitive SDKs.
Primitive is an inbound and outbound email platform. The SDKs are centered on a small default workflow:
- receive an inbound email
- inspect a normalized email object
- send, reply, or forward synchronously
SDKs
| SDK | Install target | README | | --- | --- | --- | | Node.js | npm install @primitivedotdev/sdk | sdk-node/README.md | | Python | pip install primitivedotdev | sdk-python/README.md | | Go | go get github.com/primitivedotdev/sdks/sdk-go@latest | sdk-go/README.md |
Default API shape
Across the SDKs, the default story is:
- receive inbound mail with
receive(...) - create an outbound client with
client(...) - send new mail with
send(...) - continue a thread with
reply(...) - forward a message with
forward(...)
The Node.js end-state looks like this:
import primitive from "@primitivedotdev/sdk";
const client = primitive.client({
apiKey: process.env.PRIMITIVE_API_KEY!,
});
export async function POST(req: Request) {
const email = await primitive.receive(req, {
secret: process.env.PRIMITIVE_WEBHOOK_SECRET!,
});
await client.reply(email, "Thank you for your email.");
return Response.json({ ok: true });
}
x402 payments
Each SDK also ships a non-custodial x402 payments client. One agent registers a payout address and requests a USDC payment; the paying agent signs locally with its own key and settles. Keys never leave the caller. Networks are base and base-sepolia, and amounts are token base units (USDC has 6 decimals, so "10000" is 0.01 USDC). See the "x402 payments" section in each SDK README (sdk-node, sdk-python, sdk-go) for runnable examples, and the primitive payments command group in the CLI for the same flow from a terminal.
Advanced surfaces
The low-level and generated APIs still exist for advanced use cases:
- webhook verification/parsing helpers
- generated HTTP API packages
- Primitive Memories key-value operations
- OpenAPI exports
- contract tooling
- raw MIME parsing helpers
- CLI
The SDK refresh keeps those escape hatches available, but the primary docs story focuses on the inbound/outbound automation flow above.
Repository layout
sdks/
.github/workflows/
openapi/
json-schema/
sdk-go/
sdk-node/
sdk-python/
test-fixtures/
Development
Use the root Makefile as the main task interface:
make node-generate python-generate go-generate
make check
make build
make shared-check
The Makefile wraps each SDK's native commands. You can still run them directly from each SDK directory when needed:
cd sdk-node && pnpm typecheck && pnpm test
cd sdk-python && uv sync --dev && uv run pytest && uv run ruff check . && uv run basedpyright
cd sdk-go && go test ./... && go test -run TestSharedCompatibilityFixtures ./...
Documentation
docs/architecture.mdgives the repository architecture and package layoutdocs/schema-generation.mddocuments schema/codegen flowdocs/repo-model.mddocuments the monorepo task modelRELEASE.mddocuments the release process
Primitive developer resources
Everything for building on primitive.dev, the email API for AI agents:
- Primitive API documentation — docs.primitive.dev/docs (REST reference: /docs/api)
- Primitive OpenAPI spec — primitive.dev/openapi.json
- Primitive authentication guide — /docs/auth
- Primitive webhooks — /docs/endpoints
- Primitive MCP server (Claude & ChatGPT connector) — /docs/connectors
- Primitive CLI —
npm install -g primitive - Full developer-resources index — primitive.dev/developers
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: primitivedotdev
- Source: primitivedotdev/sdks
- License: MIT
- Homepage: https://www.primitive.dev/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.