Skip to content

Commit 128f673

Browse files
SWE Destroyerclaude
andcommitted
feat: change default ports to non-standard values and improve configurability
Migrate all AgentEx ports from commonly-used generic ports to unique, less standard ports to avoid conflicts with other local services: - AgentEx API: 5003 → 5718 - ACP Server: 8000 → 8718 - Health Check: 80 → 8080 - Multi-agent example offsets: 8000-8003 → 8718-8721 All ports remain fully configurable via environment variables (AGENTEX_BASE_URL, ACP_PORT, HEALTH_CHECK_PORT) and manifest configuration. This change updates defaults across: - Core SDK (environment_variables.py, _client.py, base_acp_server.py) - CLI templates and deploy handlers - 23 example/tutorial Dockerfiles - 25 manifest YAML files - 41 example test files and dev notebooks - Multi-agent example scripts and documentation Note: .github/workflows/*.yml still needs updating but requires workflow scope token. Resolves AGX1-98 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c7162a6 commit 128f673

File tree

143 files changed

+351
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+351
-314
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Brewfile.lock.json
1919
examples/**/uv.lock
2020

2121
# Claude workspace directories
22-
.claude-workspace/
22+
.claude-workspace/.mcp.json

examples/demos/procurement_agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN uv pip install --system .
4242
COPY procurement_agent/project /app/procurement_agent/project
4343

4444
# Run the ACP server using uvicorn
45-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
45+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8718"]
4646

4747
# When we deploy the worker, we will replace the CMD with the following
4848
# CMD ["python", "-m", "run_worker"]

examples/demos/procurement_agent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ uv sync
8585
export ENVIRONMENT=development && uv run agentex agents run --manifest manifest.yaml
8686
```
8787

88-
The agent will start and register with the AgentEx backend on port 8000.
88+
The agent will start and register with the AgentEx backend on port 8718.
8989

9090
### Step 4: Create a Task
9191

@@ -365,7 +365,7 @@ tools=[
365365
## Troubleshooting
366366

367367
**Agent not appearing in UI**
368-
- Verify agent is running on port 8000: `lsof -i :8000`
368+
- Verify agent is running on port 8718: `lsof -i :8718`
369369
- Check `ENVIRONMENT=development` is set
370370
- Review agent logs for errors
371371

examples/demos/procurement_agent/dev.ipynb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"id": "36834357",
77
"metadata": {},
88
"outputs": [],
9-
"source": [
10-
"from agentex import Agentex\n",
11-
"\n",
12-
"client = Agentex(base_url=\"http://localhost:5003\")"
13-
]
9+
"source": "from agentex import Agentex\n\nclient = Agentex(base_url=\"http://localhost:5718\")"
1410
},
1511
{
1612
"cell_type": "code",

examples/demos/procurement_agent/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ build:
4040
# Only used when running the agent locally
4141
local_development:
4242
agent:
43-
port: 8000 # Port where your local ACP server is running
43+
port: 8718 # Port where your local ACP server is running
4444
host_address: host.docker.internal # Host address for Docker networking (host.docker.internal for Docker, localhost for direct)
4545

4646
# File paths for local development (relative to this manifest.yaml)

examples/tutorials/00_sync/000_hello_acp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ ENV PYTHONPATH=/app
4848
ENV AGENT_NAME=000-hello-acp
4949

5050
# Run the agent using uvicorn
51-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
51+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8718"]

examples/tutorials/00_sync/000_hello_acp/dev.ipynb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"id": "0",
77
"metadata": {},
88
"outputs": [],
9-
"source": [
10-
"from agentex import Agentex\n",
11-
"\n",
12-
"client = Agentex(base_url=\"http://localhost:5003\")"
13-
]
9+
"source": "from agentex import Agentex\n\nclient = Agentex(base_url=\"http://localhost:5718\")"
1410
},
1511
{
1612
"cell_type": "code",
@@ -155,4 +151,4 @@
155151
},
156152
"nbformat": 4,
157153
"nbformat_minor": 5
158-
}
154+
}

examples/tutorials/00_sync/000_hello_acp/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ build:
4040
# Only used when running the agent locally
4141
local_development:
4242
agent:
43-
port: 8000 # Port where your local ACP server is running
43+
port: 8718 # Port where your local ACP server is running
4444
host_address: host.docker.internal # Host address for Docker networking (host.docker.internal for Docker, localhost for direct)
4545

4646
# File paths for local development (relative to this manifest.yaml)

examples/tutorials/00_sync/000_hello_acp/tests/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
3. Run: pytest test_agent.py -v
1313
1414
Configuration:
15-
- AGENTEX_API_BASE_URL: Base URL for the AgentEx server (default: http://localhost:5003)
15+
- AGENTEX_API_BASE_URL: Base URL for the AgentEx server (default: http://localhost:5718)
1616
- AGENT_NAME: Name of the agent to test (default: hello-acp)
1717
"""
1818

@@ -26,7 +26,7 @@
2626
from agentex.types.task_message_update import StreamTaskMessageFull, StreamTaskMessageDelta
2727

2828
# Configuration from environment variables
29-
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")
29+
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5718")
3030
AGENT_NAME = os.environ.get("AGENT_NAME", "s000-hello-acp")
3131

3232

examples/tutorials/00_sync/010_multiturn/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ ENV PYTHONPATH=/app
4848
ENV AGENT_NAME=010-multiturn
4949

5050
# Run the agent using uvicorn
51-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
51+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8718"]

0 commit comments

Comments
 (0)