refactor: finish MCP SDK v2 migration

This commit is contained in:
Andrew Khadder 2026-07-14 17:07:30 -07:00
commit f94cb38b0b
No known key found for this signature in database

View file

@ -0,0 +1,16 @@
/**
* Resolve module-local links inherited from the base MCP SDK declarations.
*
* TypeDoc's externalSymbolLinkMappings handles package-qualified symbols, but
* the base SDK writes this particular reference as `index.inputRequired`.
*/
const BASE_SDK_DOCS = "https://ts.sdk.modelcontextprotocol.io/v2/";
/** @param {import("typedoc").Application} app */
export function load(app) {
app.converter.addUnknownSymbolResolver((ref) => {
const name = ref.symbolReference?.path?.map((part) => part.path).join(".");
if (name === "index.inputRequired") return BASE_SDK_DOCS;
});
}