@mrdoge/protocol
v0.1.2
Published
Wire-format spec and shared Zod schemas for the Mr. Doge SDK protocol
Maintainers
Readme
@mrdoge/protocol
Wire-format spec and shared schemas for the Mr. Doge SDK.
This package is what makes language-neutral SDKs possible:
- PROTOCOL.md — the human-readable wire spec. Read this to build an SDK in any language.
- Zod schemas (TypeScript source of truth for resource shapes and method signatures).
- JSON Schema artifact (emitted at build time as
dist/schema.json). Use this to generate types in Python, Go, Rust, etc.
Why this exists separately
The Node SDK (mrdoge) imports from here. Future Python / Go / Rust SDKs read dist/schema.json and generate their own types. The server validates incoming requests and outgoing responses against the same Zod schemas — one source of truth, everywhere.
Install
npm install @mrdoge/protocolYou usually don't import this directly — the mrdoge SDK re-exports the types you need. Use this package directly if you're building a custom client or generating types for a non-TypeScript SDK.
License
Apache 2.0
