Validate `x-mcp-header` in tool input schema

Đang mở
#1,269 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@mohit32886 đang làm issue này rồi.

Từ ngày 16/11/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
api

Hướng nghiên cứu

Locate McpToolRepository in the SDK and the code path where a tool and its input schema are registered; read the linked MCP spec section on custom headers from tool parameters to learn the x-mcp-header validation rules. Add schema validation at tool registration and a unit test alongside the existing tool repository tests. Done when invalid x-mcp-header schemas are rejected with a clear error and valid ones are accepted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/server enhancement modern P2

When adding a tool with an input schema to an SDK McpToolRepository, we must validate x-mcp-header as per spec rules.

Ngôn ngữ chính
Java
Star
3.8k
Fork
1.1k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
38

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/java-sdk

Tất cả issue của modelcontextprotocol/java-sdk

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.