[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:
parent
eee9866ebb
commit
743529180e
1 changed files with 15 additions and 15 deletions
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue