@@ -12,6 +12,9 @@ import type {
1212 ServerCapabilities ,
1313 Implementation ,
1414 Tool ,
15+ Resource ,
16+ ResourceTemplate ,
17+ Prompt ,
1518 ResourceReference ,
1619 PromptReference ,
1720} from "@modelcontextprotocol/sdk/types.js" ;
@@ -21,10 +24,10 @@ export interface UseInspectorClientResult {
2124 messages : MessageEntry [ ] ;
2225 stderrLogs : StderrLogEntry [ ] ;
2326 fetchRequests : FetchRequestEntry [ ] ;
24- tools : any [ ] ;
25- resources : any [ ] ;
26- resourceTemplates : any [ ] ;
27- prompts : any [ ] ;
27+ tools : Tool [ ] ;
28+ resources : Resource [ ] ;
29+ resourceTemplates : ResourceTemplate [ ] ;
30+ prompts : Prompt [ ] ;
2831 capabilities ?: ServerCapabilities ;
2932 serverInfo ?: Implementation ;
3033 instructions ?: string ;
@@ -51,14 +54,14 @@ export function useInspectorClient(
5154 const [ fetchRequests , setFetchRequests ] = useState < FetchRequestEntry [ ] > (
5255 inspectorClient ?. getFetchRequests ( ) ?? [ ] ,
5356 ) ;
54- const [ tools , setTools ] = useState < any [ ] > ( inspectorClient ?. getTools ( ) ?? [ ] ) ;
55- const [ resources , setResources ] = useState < any [ ] > (
57+ const [ tools , setTools ] = useState < Tool [ ] > ( inspectorClient ?. getTools ( ) ?? [ ] ) ;
58+ const [ resources , setResources ] = useState < Resource [ ] > (
5659 inspectorClient ?. getResources ( ) ?? [ ] ,
5760 ) ;
58- const [ resourceTemplates , setResourceTemplates ] = useState < any [ ] > (
59- inspectorClient ?. getResourceTemplates ( ) ?? [ ] ,
60- ) ;
61- const [ prompts , setPrompts ] = useState < any [ ] > (
61+ const [ resourceTemplates , setResourceTemplates ] = useState <
62+ ResourceTemplate [ ]
63+ > ( inspectorClient ?. getResourceTemplates ( ) ?? [ ] ) ;
64+ const [ prompts , setPrompts ] = useState < Prompt [ ] > (
6265 inspectorClient ?. getPrompts ( ) ?? [ ] ,
6366 ) ;
6467 const [ capabilities , setCapabilities ] = useState <
0 commit comments