Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Tool `title` and `inputSchema`: what to expose when not provided?

Đang mở
#224 0 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
api

Hướng nghiên cứu

Read the linked discussion on pull request #223 and compare how WebMCP exposes RegisteredTool#title and inputSchema with MCP behavior. The issue does not settle which API behavior to choose, so first look for a decision in the discussion; done means the exposed values follow the agreed behavior.

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

Mô tả

See https://github.com/webmachinelearning/webmcp/pull/223#discussion_r3620023509 for discussion.

The spec and Chromium implementation always expose the RegisteredTool#title member to JavaScript as a string (empty when not provided), never undefined (see https://crrev.com/c/7742044). We liked this because then the shape of the API is "simple" and the developer doesn't have to reason about what undefined vs "" means. The downside is that we break from MCP, where an MCP client will observe tool.title is undefined if the server doesn't provide it.

Perhaps we should treat title like inputSchema, and expose both as undefined when not provided. Although it's worth noting that this is a different kind of break from MCP, where inputSchema is required there but not in WebMCP.

/cc @beaufortfrancois @liady

Ngôn ngữ chính
Bikeshed
Star
4.7k
Fork
328
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
16

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 webmachinelearning/webmcp

Tất cả issue của webmachinelearning/webmcp

Issue tương tự

Thêm issue về Backend & API Design

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.