File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hf-mcp" ,
3
3
"private" : true ,
4
- "version" : " 0.2.16 " ,
4
+ "version" : " 0.2.18 " ,
5
5
"type" : " module" ,
6
6
"packageManager" :
" [email protected] " ,
7
7
"scripts" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @llmindset/hf-mcp-server" ,
3
- "version" : " 0.2.16 " ,
3
+ "version" : " 0.2.18 " ,
4
4
"description" : " Official Hugging Face MCP Server" ,
5
5
"type" : " module" ,
6
6
"main" : " ./dist/server/streamableHttp.js" ,
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function parseGradioEndpoints(gradioParam: string): SpaceTool[] {
85
85
for ( const entry of entries ) {
86
86
// Validate exactly one slash
87
87
const slashCount = ( entry . match ( / \/ / g) || [ ] ) . length ;
88
- if ( slashCount !== 1 ) {
88
+ if ( slashCount !== 1 && 'none' != entry ) {
89
89
logger . warn ( `Skipping invalid gradio entry "${ entry } ": must contain exactly one slash` ) ;
90
90
continue ;
91
91
}
@@ -152,6 +152,12 @@ export const createProxyServerFactory = (
152
152
return result ;
153
153
}
154
154
155
+ // Skip Gradio endpoints if explicitly disabled
156
+ if ( gradio === 'none' ) {
157
+ logger . debug ( 'Gradio endpoints explicitly disabled via gradio="none"' ) ;
158
+ return result ;
159
+ }
160
+
155
161
// Now we have access to userDetails if needed
156
162
if ( userDetails ) {
157
163
logger . debug ( `Proxy has access to user details for: ${ userDetails . name } ` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @llmindset/hf-mcp" ,
3
- "version" : " 0.2.16 " ,
3
+ "version" : " 0.2.18 " ,
4
4
"type" : " module" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments