Add request handler for resource templates (#89)

This commit is contained in:
Christopher Hertel 2025-10-04 19:43:41 +02:00 • committed by GitHub
commit cecfa0c3c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 285 additions and 1 deletions

View file

@ -54,7 +54,7 @@ abstract class InspectorSnapshotTestCase extends TestCase
return [
'Prompt Listing' => ['method' => 'prompts/list'],
'Resource Listing' => ['method' => 'resources/list'],
// 'Resource Template Listing' => ['method' => 'resources/templates/list'],
'Resource Template Listing' => ['method' => 'resources/templates/list'],
'Tool Listing' => ['method' => 'tools/list'],
];
}

View file

@ -0,0 +1,10 @@
{
"resourceTemplates": [
{
"name": "get_item_details",
"uriTemplate": "item://{itemId}/details",
"description": "A manually registered resource template.",
"mimeType": "application/json"
}
]
}

View file

@ -0,0 +1,3 @@
{
"resourceTemplates": []
}