Skip to main content
Glama
imap2mcp

imap2mcp

by czepter

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP port. Default 3000.3000
BASE_URLYesPublic URL of the server. The MCP resource/audience is ${BASE_URL}/mcp. Required for production. https enables Secure cookies and HSTS.
DATA_DIRNoDirectory for bridge.db (SQLite, WAL). Default ./data../data
CORS_ORIGINNoCORS origin for machine-facing endpoints.
SIDECAR_BINNoPath to the sidecar binary. Default sidecar/bin/sidecar.sidecar/bin/sidecar
ENCRYPTION_KEYNo64 hex character master key. No default. Alternative to ENCRYPTION_KEY_FILE; the file is preferred.
SESSION_SECRETNoSession secret, at least 32 characters. No default. Alternative to SESSION_SECRET_FILE.
AUDIT_FAIL_MODENoAudit failure mode: closed (default) or open.closed
SIDECAR_DISABLEDNoSet to 1 to use the v0 direct IMAP read path. Debugging only; bypasses the sidecar and its cache.
REGISTRATION_MODENoClient registration mode: dynamic (default, RFC 7591) or admin (clients created in UI only).dynamic
ALLOW_PRIVATE_HOSTSNoComma-separated list of mailbox host names that may resolve to private/loopback addresses. Matched by exact host name.
ENCRYPTION_KEY_FILENoPath to a file containing the 32-byte master key (hex or base64). No default. Alternative to ENCRYPTION_KEY.
SESSION_SECRET_FILENoPath to a file containing the session secret. No default. Alternative to SESSION_SECRET.
SYNC_RECONCILE_SECSNoInterval in seconds for the sidecar's UID/flag reconciliation. Default 30.30
AUDIT_RETENTION_DAYSNoAudit retention in days. Default 90; 0 keeps forever.90
ADMIN_BOOTSTRAP_TOKENNoFixed one-time bootstrap token instead of a random one.
SIDECAR_EXTRA_CA_FILENoExtra CA bundle the sidecar trusts for IMAP TLS.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources