Skip to content

argon v0.1.0-preview.2 (Developer Preview 2)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Oct 13:18
· 79 commits to master since this release
1b17d7a

Adds MCP resources.

Added

  • Resources: argon.Resource for fixed URIs and
    argon.ResourceTemplate[P] for RFC 6570 URI templates whose variables
    decode into a typed struct (converted to field types and validated via
    its JSON Schema). Text and binary contents (TextResource,
    BlobResource), ErrResourceNotFound, and options MIMEType,
    ResourceTitle, ResourceScopes, ResourceTimeout, ResourceMaxOutput.
    Resources share the tools' safe defaults and per-item scopes.
  • Servers may expose resources without any tools.
  • argontest.ReadResource for reading resources in tests.

Changed

  • Resource reads made by an authenticated caller are marked
    cacheScope: private (the SDK defaults to public).