Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM python:3.10-slim

# Set environment variables to prevent Python from writing .pyc files and enable unbuffered logging
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1

WORKDIR /app

# Copy only the mcp directory because that's our project
COPY mcp/ ./mcp/

# Change working directory to the mcp folder
WORKDIR /app/mcp

# Upgrade pip
RUN pip install --upgrade pip

# Install build dependencies and then project package
RUN pip install .

# Expose port if necessary (the MCP uses stdio transport by default so not needed)

# Set entrypoint to run the MCP server. The API key can be passed as an environment variable or as an argument.
ENTRYPOINT ["agentmail-mcp"]

# Default command: if no api-key is provided, it will warn and run with limited functionality
CMD ["--api-key", "${AGENTMAIL_API_KEY}"]
22 changes: 22 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required: []
properties:
apiKey:
type: string
description: AgentMail API key to use for authenticating with AgentMail
services. If not provided, certain functionality may be limited.
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'agentmail-mcp',
args: config.apiKey ? ['--api-key', config.apiKey] : []
})
exampleConfig:
apiKey: YOUR_AGENTMAIL_API_KEY