server-stateless doesn't set `mcp-method` etc.

Đang mở Phù hợp với người mới
#312 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu bằng cách xác định scenario server-stateless và chạy nó để tái hiện lỗi do thiếu header. Cập nhật scenario để các request thiết lập các header MCP-MethodMCP-Name, sau đó xác minh rằng test không còn thất bại vì thiếu một trong hai header.

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

Mô tả

bug

Describe the bug

The server-stateless scenario doesn't set the MCP-Method or MCP-Name headers. These are not part of the test and should be set. Our server is throwing an exception because they are missing which, incorrectly, fails the test.

To Reproduce

  1. Run server-stateless and alter your server code or test code to check for missing MCP-Method header.

Expected behavior
The test should always set MCP-Method as this is not part of the test.

Logs

  {
    "id": "sep-2575-request-meta-invalid-missing-client-info",
    "name": "RequestMetaInvalid",
    "description": "Rejects request with _meta missing io.modelcontextprotocol/clientInfo",
    "status": "FAILURE",
    "timestamp": "2026-05-23T17:52:50.571Z",
    "errorMessage": "Expected error code -32602, got -32001",
    "specReferences": [
      {
        "id": "SEP-2575",
        "url": "https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2575"
      }
    ],
    "details": {
      "fieldIssue": "missing-client-info",
      "response": {
        "jsonrpc": "2.0",
        "id": 103,
        "error": {
          "code": -32001,
          "message": "Missing required header: MCP-Method"
        }
      }
    }
  }
Ngôn ngữ chính
TypeScript
Star
127
Fork
101
Merge trung bình
6 ngày 1 giờ
Pull request đã merge (30 ngày)
7

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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/conformance

Tất cả issue của modelcontextprotocol/conformance

Issue tương tự

Thêm issue về TypeScript

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.