Skip to content

Expose MCP tool safeguards inline - #8

Merged
kopachlager merged 1 commit into
mainfrom
agent/glama-static-validation
Aug 9, 2026
Merged

Expose MCP tool safeguards inline#8
kopachlager merged 1 commit into
mainfrom
agent/glama-static-validation

Conversation

@kopachlager

Copy link
Copy Markdown
Owner

What changed

  • declares all four MCP tool annotations directly on every tool
  • declares each Zod input schema directly on its tool definition
  • places a visible structured error boundary in every handler
  • adds validation coverage for every schema and handler
  • prepares version 0.1.6 and refreshes the MCP SDK dependency

Why

The runtime already exposed these safeguards, but registry static analyzers could not follow the shared constants, schemas, and wrapper. This refactor preserves behavior while making the declarations directly auditable.

Verification

  • npm audit: 0 vulnerabilities
  • npm test: 19 passing
  • npm run test:coverage: 99.68% lines
  • npm run check
  • npm run pack:check

@kopachlager
kopachlager marked this pull request as ready for review August 9, 2026 13:48
@kopachlager
kopachlager merged commit d81951b into main Aug 9, 2026
3 checks passed
@kopachlager
kopachlager deleted the agent/glama-static-validation branch August 9, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant