modelcontextprotocol / modelcontextprotocol/conformance

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

Open Beginner friendly
#312 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
127
Forks
101
Avg merge
6d 1h
Merged PRs (30d)
7

Description

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"
        }
      }
    }
  }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the server-stateless scenario and run it to reproduce the missing-header failure. Update the scenario so requests set the MCP-Method and MCP-Name headers, then verify that the test no longer fails because either header is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.