[WIP] Refactor everything server to be more modular and use recommended APIs.

* Updated architecture.md

* Refactor / renamed uris from test://X/resource/Y to demo://resource/X/Y
This commit is contained in:
cliffhall 2025-12-05 18:54:30 -05:00
commit 743529180e

View file

@ -13,13 +13,13 @@ import {
* - Both blob and text resources:
* - have content that is dynamically generated, including a timestamp
* - have different template URIs
* - Blob: "test://dynamic/resource/blob/{index}"
* - Text: "test://dynamic/resource/text/{index}"
* - Blob: "demo://resource/dynamic/blob/{index}"
* - Text: "demo://resource/dynamic/text/{index}"
*
* @param server
*/
export const registerDynamicResources = (server: McpServer) => {
const uriBase: string = "test://dynamic/resource";
const uriBase: string = "demo://resource/dynamic";
const textUriBase: string = `${uriBase}/text`;
const blobUriBase: string = `${uriBase}/blob`;
const textUriTemplate: string = `${textUriBase}/{index}`;