refactor: finish MCP SDK v2 migration
This commit is contained in:
parent
a76e3a7691
commit
f94cb38b0b
1 changed files with 684 additions and 540 deletions
16
scripts/typedoc-plugin-base-sdk-links.mjs
Normal file
16
scripts/typedoc-plugin-base-sdk-links.mjs
Normal 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;
|
||||
});
|
||||
}
|
||||
Loading…
Reference in a new issue