File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,6 @@ if (!apiKey || !projectId || !integrationId) {
14
14
) ;
15
15
}
16
16
17
- interface QuestionResponse {
18
- answer : string ;
19
- relevant_sources : Array < {
20
- source_url : string ;
21
- title : string ;
22
- contains_internal_data : boolean ;
23
- } > ;
24
- }
25
-
26
17
interface SearchResponse {
27
18
search_results : Array < {
28
19
title : string ;
@@ -44,34 +35,6 @@ function getServer(): McpServer {
44
35
} ,
45
36
}
46
37
) ;
47
- server . registerTool (
48
- "ask_astro_question" ,
49
- {
50
- title : "Ask Astro question" ,
51
- description : "Ask a technical question about Astro framework" ,
52
- inputSchema : {
53
- query : z . string ( ) . describe ( "The question to ask about Astro" ) ,
54
- } ,
55
- } ,
56
- async ( { query } ) => {
57
- if ( ! query ) {
58
- throw new Error ( "Query is required" ) ;
59
- }
60
- const result = await sendKapaRequest < QuestionResponse > ( "chat" , query ) ;
61
- if ( "error" in result ) {
62
- return formatResponse ( result ) ;
63
- }
64
- return formatResponse ( {
65
- answer : result . answer ,
66
- relevant_sources : result . relevant_sources . map (
67
- ( { source_url, title } ) => ( {
68
- source_url,
69
- title,
70
- } )
71
- ) ,
72
- } ) ;
73
- }
74
- ) ;
75
38
76
39
server . registerTool (
77
40
"search_astro_docs" ,
You can’t perform that action at this time.
0 commit comments