Repository navigation
API Reference
The API reference of the SDK is on the documentation site: https://christianpresley.github.io/zig-sdk/. The Zig compiler makes the reference from the doc comments of the source code1. The workflow docs.yml deploys the site from the last commit on main.
Applies to: zig-sdk 0.2.0.
| Module | Reference | Contents |
|---|---|---|
mcp |
https://christianpresley.github.io/zig-sdk/api/mcp/ | The protocol types, the server, the client, the extensions, the stdio, HTTP, Unix socket and WebSocket transports, authorization and TLS. |
mcp_grpc |
https://christianpresley.github.io/zig-sdk/api/mcp_grpc/ | The gRPC transport. See Transport gRPC. |
The first page of the site also links to the wiki, the Conformance page, the conformance matrix, the repository, the releases and the changelog.
The workflow .github/workflows/docs.yml runs on each push to main. You can also start it manually. It runs zig build site and deploys zig-out/site to GitHub Pages2. The workflow uses only actions that GitHub owns: actions/configure-pages3, actions/upload-pages-artifact4 and actions/deploy-pages5. The site is available when the repository has GitHub Pages enabled with the source GitHub Actions.
zig build site writes these files:
| Path | Contents |
|---|---|
zig-out/site/index.html |
The first page of the site, from docs/site/index.html. |
zig-out/site/api/mcp/ |
The reference of the module mcp. |
zig-out/site/api/mcp_grpc/ |
The reference of the module mcp_grpc. |
The CI job docs runs zig build docs site on each push to main and on each pull request. It keeps the site as the artifact site.
zig build docs writes only the reference of the module mcp to zig-out/docs.
- Run
zig build site. - Serve the directory
zig-out/sitewith a local web server. The reference loads a WebAssembly file, so afile://URL does not work. - Open the address of the server in a browser.
- ZIG-0.16-LANGREF: The Zig 0.16.0 language reference, section Doc Comments.
- GH-PAGES: GitHub Pages and custom workflows.
-
GH-ACTION-CONFIGURE-PAGES: The action
actions/configure-pages. -
GH-ACTION-UPLOAD-PAGES-ARTIFACT: The action
actions/upload-pages-artifact. -
GH-ACTION-DEPLOY-PAGES: The action
actions/deploy-pages.
zig-sdk uses the Apache License 2.0. The wiki uses the project profile of ASD-STE100 Simplified Technical English. The Bibliography lists the sources.
zig-sdk
- Home
- Getting Started
- Concepts
- Server Guide
- Client Guide
- Transports
- Transport stdio
- Transport Streamable HTTP
- Transport gRPC
- Transport Unix Socket
- Transport WebSocket
- TLS and Certificates
- Deploy Reverse Proxy
- Authorization
- Authorization Server
- JSON Schema Support
- Resource Templates
- Tasks Extension
- Skills Extension
- Apps Extension
- Conformance
- Examples
- API Reference
- Interoperability
- Threat Model
- Limits and Security
- Deprecated Features
- Roadmap
- Release Notes
- Versioning
- Contributing
- FAQ
Style and words