The short answer

An MCP client should treat every server as a negotiating partner, not as a promise that every advertised feature will work.

A safe client does four things:

  1. It validates the initialization response before using the session.
  2. It enables optional protocol features only when both sides support them.
  3. It degrades to a smaller valid workflow when a server omits an optional feature.
  4. It treats tool discovery as live state, not a permanent catalog that can be safely cached forever.

For a founder, this matters because a superficially successful connection can still produce failed automations, incorrect tool calls, or silent loss of functionality. The goal is not to support every optional MCP feature. The goal is to make the client predictable when servers, SDKs, and protocol versions differ.

Initialization is a contract, not a formality

In the MCP 2025-11-25 lifecycle, the client starts with an initialize request. The server responds with a protocol version, server capabilities, and implementation information. The client then sends an initialized notification, after which normal operation can begin.

The order matters. A client should not send ordinary requests before initialization completes. The server, in turn, should not issue normal requests before receiving the initialized notification; pings and logging are the exceptions permitted during that period.

Here is a simplified JSON-RPC exchange:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-11-25",
    "capabilities": {
      "listChanged": true
    },
    "clientInfo": {
      "name": "example-agent",
      "version": "1.0.0"
    }
  }
}

A valid server response must at least establish that the response is a JSON-RPC response to the matching request and contains usable protocol metadata. A representative response is:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2025-11-25",
    "capabilities": {
      "listChanged": true
    },
    "serverInfo": {
      "name": "example-server",
      "version": "2.4.0"
    }
  }
}

Do not treat a response as valid merely because the transport returned HTTP 200. Check the JSON-RPC structure, the response ID, the result shape, and the selected protocol version.

What to do when versions differ

The client proposes a protocol version it supports. If the server supports it, the server should return the same version. Otherwise, the server may return another version it supports. If the client does not support the selected version, the lifecycle specification says it should disconnect.

This gives you two legitimate outcomes:

  • The client and server agree on a supported version and continue.
  • The server selects a version the client cannot support, and the client stops before normal operation.

Do not silently continue using a guessed version. Guessing may produce parsing errors much later, when the client is already handling user data or invoking tools.

For HTTP transports in this protocol version, subsequent requests must include the MCP-Protocol-Version header. Your transport adapter should make that requirement explicit rather than relying on every call site to remember it.

Negotiation is feature-by-feature

Protocol-version compatibility and capability negotiation are related, but they are not the same decision.

Version compatibility answers: “Can these two implementations exchange protocol messages?”

Capability negotiation answers: “Which optional behaviors are available in this session?”

The server’s capabilities object advertises optional features. Examples in the lifecycle specification include listChanged, which supports list-change notifications for tools, prompts, and resources, and subscribe, which supports subscriptions to individual resource changes.

A practical rule is:

Enable an optional behavior only when the server explicitly advertises it and the client supports it.

Absence is not evidence of support. Do not default listChanged or subscribe to true merely because they are convenient.

A client may also advertise its own capabilities. For example, a client that supports list-change notifications can advertise:

{
  "capabilities": {
    "listChanged": true
  }
}

That statement does not automatically mean the server supports subscriptions. The two sides advertise different abilities. The client must only use a behavior that is appropriate for its role and permitted by the negotiated session.

Build an explicit capability matrix

Instead of scattering capability checks throughout business logic, normalize the negotiated result into an internal object:

type NegotiatedCapabilities = {
  listChanged: boolean;
  subscribe: boolean;
};

function negotiatedCapabilities(
  serverCapabilities: Record<string, unknown> | undefined
): NegotiatedCapabilities {
  return {
    listChanged: serverCapabilities?.listChanged === true,
    subscribe: serverCapabilities?.subscribe === true
  };
}

Then make downstream code depend on that normalized object. It is easier to test and audit than code that repeatedly assumes a field might exist.

The exact set of capability fields varies by MCP specification revision and role. That is why your implementation should use a defined protocol revision, validate against its schema where possible, and avoid assuming that a field found in another SDK is automatically negotiated here.

Optional capabilities need real fallbacks

The founder’s question is not “Can my agent use subscriptions?” It is “What useful work can it complete when subscriptions are unavailable?”

Suppose a client wants to react immediately when a server’s tool list changes. With listChanged, the server can notify the client that its list changed. Without it, the client can still use core tool discovery, but it must refresh the list on a schedule, at the start of relevant workflows, or after observing another reliable trigger.

The fallback should be explicit:

Server behavior Client behavior Product consequence
listChanged: true Register the notification handler and refresh the affected catalog Near-real-time catalog updates
Capability omitted Use scheduled or workflow-time refresh Slight discovery delay
Discovery request fails Keep the last known catalog only if its age and validity policy allow it; otherwise mark tools unavailable Degraded or blocked workflow
Response schema is invalid Reject the response and do not merge it into the catalog Previous known state remains intact

Do not let a missing optional feature become a failed connection. Optional means the workflow should continue through a supported path, with reduced immediacy or functionality where necessary.

However, do not turn a fallback into an excuse to silently ignore errors. If an agent is expected to use newly deployed tools during a transaction, a stale catalog can cause missing actions. In that case, fail closed or require a fresh discovery before executing the transaction.

Tool discovery errors need different responses

tools/list failures are not all equivalent.

1. The transport failed

A connection timeout, DNS failure, or broken stream means the client does not currently know the server’s catalog. A bounded retry may be appropriate, but only if the operation is idempotent and the client has not started a consequential workflow.

2. The server returned a JSON-RPC error

For example:

{
  "jsonrpc": "2.0",
  "id": 42,
  "error": {
    "code": -32603,
    "message": "Tool registry unavailable"
  }
}

This is a server-reported protocol or application error. The client should not interpret it as an empty tool list. “Discovery failed” and “the server has no tools” require different product states.

3. The response is structurally invalid

A result might arrive with a missing tools array, duplicate tool names, malformed schemas, or a tool whose required metadata cannot be parsed. Reject the invalid response. Do not partially import it unless you have a deliberate schema-repair policy and can explain what the agent may safely call.

4. The tool disappears after discovery

A server can change its tool catalog after the client lists it. A later tools/call may therefore fail even when discovery previously succeeded. Treat this as a normal runtime failure: refresh discovery once, confirm that the tool still exists, and either retry the call or report that the requested action is no longer available.

Avoid an infinite “refresh and retry” loop. It can turn a removed or renamed tool into repeated load. A bounded refresh policy is more useful for protecting a production agent and its upstream API budget.

Do not make cached tool lists your source of truth

A cached tool list can improve startup time, but it can also hide a deployment, rename, permission change, or schema change. For a founder-facing product, that may mean an agent confidently plans around a tool that no longer exists.

Use a freshness policy instead of a blanket cache rule:

  • Refresh at connection initialization for the active protocol version.
  • Refresh before workflows whose behavior depends on newly available or recently changed tools.
  • Refresh after a relevant list-change notification when the capability was negotiated.
  • Refresh after a call reports that a discovered tool is missing or invalid.
  • Respect a server-provided cache lifetime if the transport and protocol revision define one.
  • Never let expired metadata override a newer successful discovery.

Store cache metadata alongside the catalog: server identity, protocol version, discovery timestamp, schema version if available, and the transport or endpoint identity.

Then define what “fresh” means in product terms. For a read-only assistant, a short-lived cache may be acceptable. For an agent that creates tickets, sends messages, or changes billing state, freshness matters more because the cost of a missing or stale action is higher.

A small state model prevents ambiguous behavior

A client can make negotiation and discovery explicit with four states:

type ConnectionState =
  | { kind: "idle" }
  | { kind: "negotiating" }
  | { kind: "ready"; capabilities: NegotiatedCapabilities }
  | { kind: "degraded"; reason: string }
  | { kind: "failed"; reason: string };

The state machine gives product code a stable contract:

  • negotiating: do not issue normal requests.
  • ready: use only negotiated optional features and a valid tool catalog.
  • degraded: core operations may continue through documented fallbacks.
  • failed: block the operation and expose a clear reason.

This avoids a common failure mode: a generic connected boolean that hides whether the server supports list changes, whether discovery succeeded, or whether the current catalog is still valid.

Failure cases worth testing

Before connecting an MCP server to a customer workflow, test at least these cases:

  1. Unsupported protocol version: The server selects a version the client does not support. Expected result: disconnect before normal requests.
  2. Missing optional capability: The server omits listChanged. Expected result: use the documented polling or workflow-time refresh fallback.
  3. Malformed initialization result: The response lacks required protocol metadata. Expected result: reject the session.
  4. Tool discovery JSON-RPC error: The server returns an error object. Expected result: report discovery failure, not an empty catalog.
  5. Invalid tool schema: One tool entry is malformed. Expected result: reject the response or that entry under an explicit policy; never expose it for invocation.
  6. Tool removed after discovery: A known tool disappears before the call. Expected result: refresh once, then fail clearly if it remains unavailable.
  7. Stale cache: The server changes tools while the client is offline. Expected result: refresh before a freshness-sensitive workflow.
  8. Notification without negotiation: The client receives a list-change notification even though the capability was not negotiated. Expected result: do not rely on it; use the fallback refresh path.

These are contract tests, not performance benchmarks. They protect the most commercially important property: the agent should fail in a way a customer can understand.

The founder’s implementation checklist

Before calling an MCP integration production-ready, ask:

  • Does the client validate the initialization response rather than only the HTTP status?
  • Does it disconnect when the selected protocol version is unsupported?
  • Are optional capabilities represented as explicit booleans or normalized state?
  • Does every optional feature have a documented fallback?
  • Are discovery errors distinguished from empty catalogs?
  • Are malformed tool definitions rejected before reaching the model?
  • Is cache freshness visible and policy-driven?
  • Are refresh retries bounded?
  • Does the product expose degraded and failed states separately?
  • Are these cases covered by tests?

The safest design is deliberately conservative. Start with the smallest common capability set, preserve a usable core workflow, and add optional behavior only after the handshake and discovery paths are trustworthy.

Frequently asked questions

Should an MCP client disconnect when the server omits an optional capability?

No. An omitted optional capability should normally trigger a fallback, not a disconnection. Disconnect when the protocol version is unsupported or the session is structurally invalid.

Is a failed tools/list request the same as an empty tool list?

No. An empty list is a successful response describing zero tools. A failed request is an error state. Treat them differently so the agent does not mistake an outage for an intentionally empty integration.

Can a cached tool list be used in production?\n

Yes, if the client defines freshness and invalidation rules and refreshes before workflows that require current tools. Do not use an unbounded or silently stale cache as proof that a tool is still available.

Is capability negotiation enough to guarantee that a tool call will succeed?\

No. Negotiation establishes protocol-level support. Tools can still fail because of authorization, server errors, invalid arguments, timeouts, rate limits, or changes made after discovery. Keep runtime error handling separate from handshake validation.

If your product also manages a curated catalog of MCP integrations, the next practical step is MCP Client Skill Catalog Management: A Practical Pin, Update, and Removal Guide. If the concern is server ownership and ongoing maintenance, see When an MCP Server Goes Stale: A Solo Founder’s Decision Guide.

Sources