main.ts

atomic-mail-agentic · auth, email, mcp-server, stdio, pow-auth, jmap, credential-management

AtomicMail MCP server — stdio, PoW auth, JMAP (register / jmap_request / help). CONFIGURATION: credentials.json + session.jwt + capability.jwt in the credential directory (default ~/.atomicmail/, override ATOMIC_MAIL_CREDENTIALS_DIR), merged with ATOMIC_MAIL_AUTH_URL / ATOMIC_MAI

// AtomicMail MCP server — stdio, PoW auth, JMAP (register / jmap_request / help).
//
// CONFIGURATION: credentials.json + session.jwt + capability.jwt in the
// credential directory (default ~/.atomicmail/, override ATOMIC_MAIL_CREDENTIALS_DIR),
// merged with ATOMIC_MAIL_AUTH_URL / ATOMIC_MAIL_API_URL / ATOMIC_MAIL_API_KEY.

import process from "node:process";

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { PostHog } from "posthog-node";

import { AgentSession, resolveAgentConfigFromEnv } from "../lib/mod.ts";
import type { McpSessionContext } from "./mcp-session-context.ts";
import { registerHelpTool } from "./tools/help.ts";
import { registerJmapTool } from "./tools/jmap.ts"

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key