Skip to content

Commit 83c48b0

Browse files
committed
fix: Fix MCP Servers UI Tabs import error and complete implementation
- Replace TabItem child components with items array pattern for Tabs - Fix import error by removing non-existent TabItem export - Complete MCP Registry implementation with automatic registration - Add comprehensive API key management functions - Include deployment documentation and developer guides The MCP Servers page now correctly uses the Amplify UI React Tabs component pattern, allowing proper rendering of the Registry and Environment Info tabs.
1 parent 17944d8 commit 83c48b0

31 files changed

Lines changed: 7930 additions & 1 deletion

app.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from stacks.shared.shared_llm_stack import SharedLLMStack
1616
from stacks.shared.shared_infrastructure_stack import SharedInfrastructureStack
1717
from stacks.shared.agent_registry_stack import AgentRegistryStack
18+
from stacks.shared.mcp_registry_stack import MCPRegistryStack
1819
from stacks.tools.db_interface_tool_stack import DBInterfaceToolStack
1920
from stacks.tools.e2b_tool_stack import E2BToolStack
2021
from stacks.tools.google_maps_tool_stack import GoogleMapsToolStack
@@ -101,6 +102,39 @@ def main():
101102
description=f"Agent Registry for dynamic configurations in {environment} environment"
102103
)
103104

105+
# Get MCP endpoint URL from context or environment
106+
# This will be set by the UI Amplify deployment
107+
mcp_endpoint_url = os.environ.get('MCP_ENDPOINT_URL', 'https://api.example.com/mcp')
108+
if environment == "prod":
109+
# Use the production MCP endpoint from our deployment
110+
mcp_endpoint_url = "https://fkg9gkvzxk.execute-api.us-west-2.amazonaws.com/mcp"
111+
112+
# Deploy MCP Registry stack
113+
# This creates DynamoDB table for MCP Server Registry
114+
mcp_registry_stack = MCPRegistryStack(
115+
app,
116+
f"MCPRegistryStack-{environment}",
117+
env_name=environment,
118+
mcp_endpoint_url=mcp_endpoint_url,
119+
env=env,
120+
description=f"MCP Server Registry for {environment} environment"
121+
)
122+
123+
# Deploy MCP GraphQL API stack
124+
# This creates AppSync GraphQL API for MCP Registry
125+
from stacks.shared.mcp_graphql_stack import MCPGraphQLStack
126+
127+
mcp_graphql_stack = MCPGraphQLStack(
128+
app,
129+
f"MCPGraphQLStack-{environment}",
130+
mcp_registry_table_name=mcp_registry_stack.mcp_registry_table.table_name,
131+
mcp_registry_table_arn=mcp_registry_stack.mcp_registry_table.table_arn,
132+
env_name=environment,
133+
env=env,
134+
description=f"MCP Registry GraphQL API for {environment} environment"
135+
)
136+
mcp_graphql_stack.add_dependency(mcp_registry_stack)
137+
104138
# Deploy tool stacks
105139
# These deploy individual tool Lambda functions and register them in DynamoDB
106140

0 commit comments

Comments
 (0)