Skip to content

feat(core) privacy annotations for tools, an experiment#1

Open
jstjoe wants to merge 2 commits into
mainfrom
jstjoe/privacy-annotations-init
Open

feat(core) privacy annotations for tools, an experiment#1
jstjoe wants to merge 2 commits into
mainfrom
jstjoe/privacy-annotations-init

Conversation

@jstjoe
Copy link
Copy Markdown
Owner

@jstjoe jstjoe commented Apr 3, 2026

This change introduces new optional non-breaking privacy hint annotation on tool definitions, tool requests, and tool responses.

Motivation and Context

Inform clients and servers of the potential privacy implications - universally without attachment to a specific governing framework - of making or serving a request as requested.

How Has This Been Tested?

Not yet. Just a simple sample server and client script. Will do.

Breaking Changes

Nope!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Inspired by SEP-1913

jstjoe added 2 commits April 3, 2026 03:05
- added types RequestPrivacy, ResponsePrivacy, DataCategory, Purpose, LegalJustification
- added helper getRequestPrivacy(ctx)
- unit tests
- integration tests
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