Skip to content

Commit ecfc7b2

Browse files
committed
Merge branch 'main' into feat/landing-refresh
2 parents 46bcb70 + 75a9209 commit ecfc7b2

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hf-mcp",
33
"private": true,
4-
"version": "0.2.16",
4+
"version": "0.2.18",
55
"type": "module",
66
"packageManager": "[email protected]",
77
"scripts": {

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@llmindset/hf-mcp-server",
3-
"version": "0.2.16",
3+
"version": "0.2.18",
44
"description": "Official Hugging Face MCP Server",
55
"type": "module",
66
"main": "./dist/server/streamableHttp.js",

packages/app/src/server/mcp-proxy.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function parseGradioEndpoints(gradioParam: string): SpaceTool[] {
8585
for (const entry of entries) {
8686
// Validate exactly one slash
8787
const slashCount = (entry.match(/\//g) || []).length;
88-
if (slashCount !== 1) {
88+
if (slashCount !== 1 && 'none' != entry) {
8989
logger.warn(`Skipping invalid gradio entry "${entry}": must contain exactly one slash`);
9090
continue;
9191
}
@@ -152,6 +152,12 @@ export const createProxyServerFactory = (
152152
return result;
153153
}
154154

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+
155161
// Now we have access to userDetails if needed
156162
if (userDetails) {
157163
logger.debug(`Proxy has access to user details for: ${userDetails.name}`);

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@llmindset/hf-mcp",
3-
"version": "0.2.16",
3+
"version": "0.2.18",
44
"type": "module",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)