AIDRESS
Get startedConceptsSDKs & toolsAPI referenceReferencellms.txt
DocsSDKs & Integrations

Strands Agents

Aidress works with Strands Agents over the hosted MCP endpoint — no package install required.

Version pin conflict — don't pip install aidress-mcp here

Warning
strands-agents pins mcp>=1.23.0,<2.0.0; aidress-mcp pins mcp>=2.0.0,<3.0.0 — disjoint ranges, so pip install aidress-mcp cannot work in a Strands environment.

This isn't a blocker — the package isn't needed. MCP negotiates its protocol version over the wire, so Strands' own mcp 1.x client reaches the hosted server with nothing installed. Verified against strands-agents 1.51.0 / mcp 1.29.0: all 16 tools discovered, verify_agent returns successfully.

Quick start

python
from mcp.client.streamable_http import streamablehttp_client
from strands import Agent
from strands.tools.mcp import MCPClient

client = MCPClient(lambda: streamablehttp_client("https://api.aidress.ai/mcp-http/mcp"))
agent = Agent(tools=[client])   # NOT inside `with client:` — the Agent owns the session

Two traps

  • Agent(tools=[client]) must not be nested inside with client: — raises "the client session is currently running".
  • call_tool_sync returns content as a JSON string: json.loads(result["content"][0]["text"]).

Authentication

Authenticate via transport headers — the env vars documented on the MCP server page are read by the server process and do nothing for hosted callers:

python
streamablehttp_client(url, headers={"Authorization": f"Bearer {agent_key}"})