Skip to content

Commit 896e967

Browse files
author
priyanshu.solanki
committed
removing unecessary auth
1 parent f2450d3 commit 896e967

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

apps/sim/lib/mcp/serve-auth.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ export async function validateMcpServeAuth(
5555
return { success: false, error: auth.error || 'Authentication required' }
5656
}
5757

58-
// Verify user has access to the workspace
59-
const permissions = await getUserEntityPermissions(auth.userId, 'workspace', server.workspaceId)
60-
61-
if (!permissions) {
62-
// For published servers, we allow access to any authenticated user
63-
// This enables the "public but authenticated" model where anyone with a Sim account
64-
// can use published MCP servers
65-
logger.info(
66-
`User ${auth.userId} accessing published MCP server ${serverId} without workspace membership`
67-
)
68-
}
69-
7058
return {
7159
success: true,
7260
userId: auth.userId,

0 commit comments

Comments
 (0)