Skip to content

Commit e3da375

Browse files
authored
remove scope from mcp server name (#1279)
1 parent 9b7a8a8 commit e3da375

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

agents-manage-ui/src/components/mcp-servers/form/mcp-server-form.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type { Credential } from '@/lib/api/credentials';
1919
import { createMCPTool, updateMCPTool } from '@/lib/api/tools';
2020
import type { MCPTool } from '@/lib/types/tools';
2121
import { generateId } from '@/lib/utils/id-utils';
22-
import { createMcpServerNameWithScopeSuffix } from '../selection/mcp-server-selection';
2322
import { ActiveToolsSelector } from './active-tools-selector';
2423
import { CredentialScopeEnum, type MCPToolFormData, mcpToolSchema } from './validation';
2524

@@ -88,10 +87,7 @@ export function MCPServerForm({
8887

8988
const onSubmit = async (data: MCPToolFormData) => {
9089
try {
91-
const mcpServerName =
92-
mode === 'create'
93-
? createMcpServerNameWithScopeSuffix(data.name, data.credentialScope)
94-
: data.name;
90+
const mcpServerName = data.name;
9591
const isUserScoped = data.credentialScope === CredentialScopeEnum.user;
9692

9793
// For user-scoped in CREATE mode: skip OAuth (users connect later from detail page)

agents-manage-ui/src/components/mcp-servers/selection/mcp-server-selection.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ import { generateId } from '@/lib/utils/id-utils';
2020
import { PrebuiltServersGrid } from './prebuilt-servers-grid';
2121
import { ScopeSelectionDialog } from './scope-selection-dialog';
2222

23-
export function createMcpServerNameWithScopeSuffix(
24-
serverName: string,
25-
scope: 'project' | 'user'
26-
): string {
27-
return `${serverName} (${scope}-scoped)`;
28-
}
29-
3023
/**
3124
* Remove user_id from Composio URLs before storing in DB.
3225
* user_id is ALWAYS injected at discovery/runtime based on scope:
@@ -79,7 +72,7 @@ export function MCPServerSelection({ credentials, tenantId, projectId }: MCPServ
7972
setLoadingServerId(server.id);
8073
setPendingServer(null);
8174

82-
const mcpServerName = createMcpServerNameWithScopeSuffix(server.name, scope);
75+
const mcpServerName = server.name;
8376
const serverUrl = removeComposioUserId(server.url);
8477

8578
try {

0 commit comments

Comments
 (0)