# Change an MCP connector without breaking the clients that hold its definitions Version 1.2, November 26, 2026 (1.2 adds "declare every field the model must see" to section 1, a row to section 2 and the projection test before release to section 7; 1.1 added "prefer an open top level" to section 1, and the note on client sessions that cached the old list to section 3). Companion guide: https://jwatte.com/blog/change-live-mcp-connector-without-breaking-it/ Written by J.A. Watte, jwatte.com. Free to copy, adapt and ship. No attribution required. Use this when you want to change a live MCP server's tools: add output fields, add inputs, rename or tighten anything. Work through it with your developer, or paste the whole file to an AI coding agent as its brief. Replace every ALL-CAPS placeholder. Test only servers you operate. ## 1. Why this needs care Clients keep copies of your tool definitions. Some read `tools/list` again at the start of every session. Others keep the definitions they scanned until someone asks for a rescan. In our own releases, a ChatGPT plugin kept its scanned definitions until the next scan, which OpenAI runs daily or when you press Rescan in the plugin portal, while clients built on the official MCP SDK read `tools/list` each session. The MCP specification says that when a tool declares an `outputSchema`, servers MUST return structured results that conform to it and clients SHOULD validate them (https://modelcontextprotocol.io/specification/2026-07-28/server/tools). So a client may check your new answers against your old definition. Whether a given product actually validates `structuredContent` against a cached schema may not be documented. Plan as if it does: in a later walk through two published assistants, one chat session did exactly that (section 3). **Prefer an open top level.** For any tool whose answer may ever grow, leave `additionalProperties` off the top level of its `outputSchema`, and close only nested objects that must stay fixed. Then a new field is a one-release change. Treat adding a field to a closed top level as a breaking change: two releases, and notice for clients that cache. **Declare every field the model must see.** An open top level lets you return a new key, but it does not make the key reach the model. In our ChatGPT chats, only the top-level fields the tool's `outputSchema` declares were passed to the model: a link under an undeclared key never reached the customer. Claude Code, for its part, passed the model the `structuredContent` JSON and not the text block. So every notice, link and rule goes into a field the schema already declares, and into the text block. When a listing is in review, putting a sentence into an existing declared string field changes only the tool results, not the definitions; submit any schema or instructions change after the review ends, as a normal update, not as a way around the review. Check it with the projection test in https://jwatte.com/downloads/mcp-declared-fields-and-rules-check.md ## 2. Classify the change | Change | One release or two? | Why | |---|---|---| | Add an optional input | One | Old definitions never send it; the new server accepts its absence. After a rollback, a client holding the new definition may send the input to the old server; confirm the old server ignores unknown inputs. | | Add an output key to a tool whose output schema is open (no `additionalProperties: false`) | One | Old definitions accept extra keys. | | Add an output key to a tool with `additionalProperties: false` | **Two** | Old definitions reject the new key. | | Add a required input, remove a tool, rename a tool, narrow a type or enum | Two, or a new tool name | Old definitions send calls the new server refuses. | | Change only a description | One | Nothing validates against a description. Rescan so the listing text updates. | | Add a sentence or link inside an existing declared string field | One | The definitions do not change. Run the projection test so it survives in a client that passes only declared fields. | | Change the server `instructions` | One, but on its own | In our ChatGPT portal sessions an instructions change was held for review, and a standing finding on the instructions also blocked the updates of two tools on one server. Do not ship it with a tool change you need live. | List every tool you are changing: | Tool | Output schema closed? | Change | Releases needed | |---|---|---|---| | TOOL_NAME_1 | YES / NO | CHANGE_1 | 1 / 2 | | TOOL_NAME_2 | YES / NO | CHANGE_2 | 1 / 2 | ## 3. The two-step release for a closed output schema **Step 1: declare, do not emit.** Add the new keys to `properties` as **optional** (not in `required`). Keep `additionalProperties: false`. Do not return the keys yet. ```json { "type": "object", "properties": { "EXISTING_KEY": { "type": "string" }, "NEW_KEY_1": { "type": "string" }, "NEW_KEY_2": { "type": "string" } }, "required": ["EXISTING_KEY"], "additionalProperties": false } ``` **Between the steps: rescan and confirm, tool by tool.** In every directory or portal that caches definitions, request a rescan (for a ChatGPT plugin: Issues, then Rescan). Then open each changed tool and read its own status. Do not rely on a server-level "published." In one of our rescans, five of seven tools showed the new optional keys as published, while two stayed at "Earlier version published," held by a review finding on the server instructions that the portal said "Blocks updates to 2 tools." Record the time and the status of each tool. Keep any SDK-based test client on a fresh session. **Step 2: emit per tool, with no schema change.** Start returning the new keys only on the tools whose step 1 definition is published everywhere you checked. A tool that is still held keeps declaring the keys and keeps not returning them. Build this as a per-tool switch, for example a list of tool names in configuration, not one switch for the whole server. `tools/list` must be byte-identical to step 1. Check that by hashing both. **A rescan does not reach a session that cached the list.** In a later walk through two published assistants, a client session that had loaded the tool list before a two-step release still held the old closed schema and refused every answer of that tool with "Structured content does not match the tool's output schema: must NOT have additional properties". Fresh chats worked. The two steps protect the directories that rescan, not a session that cached the list. Prefer open top-level output schemas for anything that may ever grow, treat a new field in a closed schema as a breaking change with a notice period, and after each release validate live answers against the previous release's output schemas (the cached definition check in https://jwatte.com/downloads/mcp-model-in-the-loop-test.md, section 10, uses the scripts in section 5 below). **Never make the new keys required** in a definition that clients may hold while a rollback is possible. A client that holds a definition where the keys are required rejects the old server's answers, so a rollback breaks it. ## 4. Fill in the compatibility table Rows are the definition a client holds; columns are the server that answers. The expected results for the two-step release are already filled in. Prove each cell with the script in section 5 and write down what you saw. | Definition held | Server OLD | Server STEP 1 | Server STEP 2 | |---|---|---|---| | OLD | accepted (RESULT) | accepted (RESULT) | **rejected** (RESULT): wait for the rescan | | STEP 1 | accepted (RESULT): rollback safe | accepted (RESULT) | accepted (RESULT) | The only failing pair, OLD definition against the STEP 2 server, is why step 2 waits until every client you care about holds the step 1 definition. After a rescan, different tools on one server can hold different definitions. Fill in the "definition held" row for each tool. ## 5. Prove it with real answers Two small Node scripts. Run them against a local or draft copy of each version, never in a loop against production. Requirements: Node 18 or later, `npm install @modelcontextprotocol/sdk ajv` in an empty folder. **capture.mjs** records `tools/list` and the raw structured answers of the read-only tools you list. It sends the call without the SDK's own result validation, so you see what the server really returns. ```javascript // capture.mjs: record tools/list and raw tools/call results from one server, read-only tools only. // usage: node capture.mjs ENDPOINT CALLS.json OUT_PREFIX // CALLS.json: [{"name":"TOOL_NAME","arguments":{...}}, ...] // writes OUT_PREFIX-tools.json and OUT_PREFIX-answers.json // needs: npm install @modelcontextprotocol/sdk import { writeFileSync, readFileSync } from 'node:fs'; import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'; import { CallToolResultSchema } from '@modelcontextprotocol/sdk/types.js'; const [endpoint, callsFile, out] = process.argv.slice(2); if (!out) { console.error('usage: node capture.mjs ENDPOINT CALLS.json OUT_PREFIX'); process.exit(2); } const calls = JSON.parse(readFileSync(callsFile, 'utf8')); const client = new Client({ name: 'compat-capture', version: '1.0.0' }); await client.connect(new StreamableHTTPClientTransport(new URL(endpoint))); const tools = await client.listTools(); writeFileSync(`${out}-tools.json`, JSON.stringify(tools, null, 2)); const readOnly = new Set(tools.tools.filter((t) => t.annotations?.readOnlyHint === true).map((t) => t.name)); const answers = {}; for (const c of calls) { if (!readOnly.has(c.name)) { console.log(`skip ${c.name}: not marked readOnlyHint true`); continue; } // a raw request, so this client does not validate the answer against the schema it just read const r = await client.request({ method: 'tools/call', params: c }, CallToolResultSchema); if (r.structuredContent !== undefined) (answers[c.name] ||= []).push(r.structuredContent); console.log(`${c.name}: ${r.isError ? 'isError' : 'ok'}`); await new Promise((res) => setTimeout(res, 1100)); // stay well under a 60 a minute limit } writeFileSync(`${out}-answers.json`, JSON.stringify(answers, null, 2)); await client.close(); ``` `CALLS.json` lists real questions with real arguments, for example `[{"name":"TOOL_NAME","arguments":{"ARG":"VALUE"}}]`. Run it once per version: ```bash node capture.mjs https://OLD_DRAFT_HOST/mcp calls.json old node capture.mjs https://STEP1_DRAFT_HOST/mcp calls.json step1 node capture.mjs https://STEP2_DRAFT_HOST/mcp calls.json step2 ``` **compat-check.mjs** validates every recorded answer against every definition with a JSON Schema 2020-12 validator (the MCP default dialect when no `$schema` is given) and prints one line per pair. ```javascript // compat-check.mjs: does each output schema accept each server's real answers? // usage: node compat-check.mjs OLD_TOOLS.json NEW_TOOLS.json OLD_ANSWERS.json NEW_ANSWERS.json // *_TOOLS.json a tools/list result ({"tools":[...]}) saved from each version // *_ANSWERS.json {"TOOL_NAME":[structuredContent, ...]} recorded from each server // needs: npm install ajv (formats are not checked; add ajv-formats if you rely on them) import { readFileSync } from 'node:fs'; import Ajv2020 from 'ajv/dist/2020.js'; const [oldDefs, newDefs, oldAns, newAns] = process.argv.slice(2, 6) .map((f) => JSON.parse(readFileSync(f, 'utf8'))); if (!newAns) { console.error('usage: node compat-check.mjs OLD_TOOLS NEW_TOOLS OLD_ANSWERS NEW_ANSWERS'); process.exit(2); } const schemasOf = (defs) => Object.fromEntries((defs.tools || defs) .filter((t) => t.outputSchema).map((t) => [t.name, t.outputSchema])); const so = schemasOf(oldDefs), sn = schemasOf(newDefs); const ajv = new Ajv2020({ strict: false, allErrors: true, validateFormats: false }); let rejected = 0; for (const name of new Set([...Object.keys(so), ...Object.keys(sn)])) { for (const [defLabel, schema] of [['old', so[name]], ['new', sn[name]]]) { for (const [srvLabel, answers] of [['old', oldAns[name] || []], ['new', newAns[name] || []]]) { let verdict; if (!schema) verdict = 'no output schema'; else if (!answers.length) verdict = 'no answers recorded'; else { const validate = ajv.compile(schema); const bad = answers.filter((a) => !validate(a)); verdict = bad.length ? `REJECTED ${bad.length}/${answers.length}` : `accepted ${answers.length}/${answers.length}`; if (bad.length) { rejected++; validate(bad[0]); verdict += ` ${ajv.errorsText(validate.errors)}`; } } console.log(`${name} definition=${defLabel} server=${srvLabel} ${verdict}`); } } } console.log(rejected ? `${rejected} rejected pair(s)` : 'every pair accepted'); process.exit(rejected ? 1 : 0); ``` ```bash # rollback safety and step 1: every pair must be accepted node compat-check.mjs old-tools.json step1-tools.json old-answers.json step1-answers.json # step 2: exactly one pair per closed-schema tool is rejected (definition old, server new); that is the pair the rescan removes node compat-check.mjs old-tools.json step1-tools.json step1-answers.json step2-answers.json ``` The script exits 1 if any pair is rejected, so the first command can be a release gate. For the second command, read the output: the only allowed rejection is `definition=old server=new`. ## 6. Rollback rule for each step | Situation | Roll back to | Safe? | |---|---|---| | Step 1 is live and fails a check | The old release | Yes: step 1 definitions accept old answers. | | Step 2 is live and fails a check | Step 1 (not the old release) | Yes: identical definitions, answers without the new keys. | | Step 2 is live and you must go all the way back | The old release | Yes: old answers are accepted by both the old and the step 1 definitions. Rescan afterwards so listings show what is really live. | | Any step, and someone else's deploy is now published | Nothing | Do not restore over another person's publish. Find out what is live first. | ## 7. Release record - Base version: VERSION_OLD, live since DATE. - Step 1 version: VERSION_STEP1, published at TIME_UTC. tools/list hash: HASH_STEP1. - Rescan requested at TIME_UTC in: PORTAL_LIST. Per tool: TOOL_NAME_1 published at TIME_UTC; TOOL_NAME_2 HELD (FINDING). - Step 2 version: VERSION_STEP2, published at TIME_UTC, returning the new keys on: TOOL_LIST. Held, still not returning them: TOOL_LIST. tools/list hash: HASH_STEP2 (must equal HASH_STEP1). - Compatibility table: filled in from compat-check output on DATE. - Projection test (every tool and language, declared top-level keys only, schemas from your own `tools/list` with the protocol header): N of N answers that need a notice keep it, on the draft, on DATE. Script: https://jwatte.com/downloads/mcp-declared-fields-and-rules-check.md ## Sources and what was checked - MCP tools specification, 2026-07-28: output schema conformance (MUST), client validation (SHOULD), the text block for backwards compatibility, and the 2020-12 default dialect: https://modelcontextprotocol.io/specification/2026-07-28/server/tools (read November 24, 2026). - ChatGPT plugin scans and Rescan: https://developers.openai.com/plugins/deploy/submission (read November 24, 2026). - Both scripts were run on November 24, 2026 with Node 24, @modelcontextprotocol/sdk 1.32.1 and Ajv 8.20.0 against three local test servers (old, step 1, step 2) with one closed-schema tool. The results matched the table in section 4: every pair accepted for old and step 1; only definition old against server step 2 rejected; and with the new keys made required, the step 1 definition also rejected the old server. - The observations about caching and the portal come from our own releases of November 23 and 24, 2026, described in the companion guide. The cached client session in section 3 was seen in our own walk through ChatGPT and Claude on November 25, 2026 (UTC). The declared-fields finding in section 1 was seen in ChatGPT on November 25 and 26, 2026 (UTC). *Informational only. Test only servers you operate. Client and portal behavior changes; re-check before each release.*