Skip to content

Commit 68c6824

Browse files
committed
WIP
1 parent d023307 commit 68c6824

23 files changed

+3182
-12
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,9 @@ ENV ADMIN_USER=$ADMIN_USER
4848
ENV ADMIN_PASSWORD=$ADMIN_PASSWORD
4949
ENV POLYGON_API_KEY=$POLYGON_API_KEY
5050

51+
# Add health check using the new HTTP endpoint
52+
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
53+
CMD curl -f http://localhost:7860/health || exit 1
54+
5155
# Run the entrypoint script when the container launches
5256
ENTRYPOINT ["/app/docker/entrypoint.sh"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The Gateway and the Registry are available as a Docker container. The package in
184184
export POLYGON_API_KEY=your-polygon-api-key
185185
# stop any previous instance
186186
docker stop mcp-gateway-container && docker rm mcp-gateway-container
187-
docker run -p 80:80 -p 443:443 -p 7860:7860 \
187+
docker run -p 80:80 -p 443:443 -p 7860:7860 -p 8888:8888 \
188188
-e ADMIN_USER=$ADMIN_USER \
189189
-e ADMIN_PASSWORD=$ADMIN_PASSWORD \
190190
-e POLYGON_API_KEY=$POLYGON_API_KEY \
@@ -262,7 +262,7 @@ The Gateway and the Registry are available as a Docker container. The package in
262262
1. Run the container with the `-v` switch to map the local folder containing the cert and the private key to the container. Replace `/path/to/certs/` and `/path/private` as appropriate in the command provided below.
263263

264264
```bash
265-
docker run -p 80:80 -p 443:443 -p 7860:7860 \
265+
docker run -p 80:80 -p 443:443 -p 7860:7860 -p 8888:8888 \
266266
-e ADMIN_USER=$ADMIN_USER \
267267
-e ADMIN_PASSWORD=$ADMIN_PASSWORD \
268268
-e POLYGON_API_KEY=$POLYGON_API_KEY \

agents/.env.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Cognito Authentication Configuration
2+
# Copy this file to .env and fill in your actual values
3+
4+
# Cognito App Client ID
5+
COGNITO_CLIENT_ID=your_cognito_client_id_here
6+
7+
# Cognito App Client Secret
8+
COGNITO_CLIENT_SECRET=your_cognito_client_secret_here
9+
10+
# Cognito User Pool ID
11+
COGNITO_USER_POOL_ID=your_cognito_user_pool_id_here
12+
13+
# AWS Region for Cognito
14+
AWS_REGION=us-east-1

agents/agent.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ def load_system_prompt():
153153
Returns:
154154
str: The system prompt template
155155
"""
156+
import os
156157
try:
157-
with open("agents/system_prompt.txt", "r") as f:
158+
# Get the directory where this Python file is located
159+
current_dir = os.path.dirname(__file__)
160+
system_prompt_path = os.path.join(current_dir, "system_prompt.txt")
161+
with open(system_prompt_path, "r") as f:
158162
return f.read()
159163
except Exception as e:
160164
print(f"Error loading system prompt: {e}")
@@ -297,7 +301,11 @@ async def main():
297301
system_prompt_template = load_system_prompt()
298302
system_prompt = system_prompt_template.format(
299303
current_utc_time=current_utc_time,
300-
mcp_registry_url=args.mcp_registry_url
304+
mcp_registry_url=args.mcp_registry_url,
305+
auth_token="",
306+
user_pool_id="",
307+
client_id="",
308+
region=""
301309
)
302310

303311
# Format the message with system message first

0 commit comments

Comments
 (0)