diff --git a/examples/slackbot/src/slackbot/core.py b/examples/slackbot/src/slackbot/core.py index c036d1e1d..124119728 100644 --- a/examples/slackbot/src/slackbot/core.py +++ b/examples/slackbot/src/slackbot/core.py @@ -47,10 +47,6 @@ GITHUB_API_TOKEN = Secret.load(settings.github_token_secret_name, _sync=True).get() -slack_search_mcp = MCPServerStreamableHTTP( - url="https://marvin-slack-thread-assets.fastmcp.app/mcp", -) - logger = get_logger(__name__) @@ -178,6 +174,9 @@ def create_agent( api_key=Secret.load(settings.anthropic_key_secret_name, _sync=True).get(), # type: ignore ), ) + slack_search_mcp = MCPServerStreamableHTTP( + url="https://marvin-slack-thread-assets.fastmcp.app/mcp", + ) agent = Agent[ UserContext, str ](