File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -135,20 +135,9 @@ server.tool(
135
135
) ,
136
136
} ,
137
137
async ( { context7CompatibleLibraryID, tokens = DEFAULT_MINIMUM_TOKENS , topic = "" } ) => {
138
- // Extract folders parameter if present in the ID
139
- let folders = "" ;
140
- let libraryId = context7CompatibleLibraryID ;
141
-
142
- if ( context7CompatibleLibraryID . includes ( "?folders=" ) ) {
143
- const [ id , foldersParam ] = context7CompatibleLibraryID . split ( "?folders=" ) ;
144
- libraryId = id ;
145
- folders = foldersParam ;
146
- }
147
-
148
- const documentationText = await fetchLibraryDocumentation ( libraryId , {
138
+ const documentationText = await fetchLibraryDocumentation ( context7CompatibleLibraryID , {
149
139
tokens,
150
140
topic,
151
- folders,
152
141
} ) ;
153
142
154
143
if ( ! documentationText ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export async function fetchLibraryDocumentation(
35
35
options : {
36
36
tokens ?: number ;
37
37
topic ?: string ;
38
- folders ?: string ;
39
38
} = { }
40
39
) : Promise < string | null > {
41
40
try {
@@ -45,7 +44,6 @@ export async function fetchLibraryDocumentation(
45
44
const url = new URL ( `${ CONTEXT7_API_BASE_URL } /v1/${ libraryId } ` ) ;
46
45
if ( options . tokens ) url . searchParams . set ( "tokens" , options . tokens . toString ( ) ) ;
47
46
if ( options . topic ) url . searchParams . set ( "topic" , options . topic ) ;
48
- if ( options . folders ) url . searchParams . set ( "folders" , options . folders ) ;
49
47
url . searchParams . set ( "type" , DEFAULT_TYPE ) ;
50
48
const response = await fetch ( url , {
51
49
headers : {
You can’t perform that action at this time.
0 commit comments