Ways in

These pages explain three ways into email-mcp. The person uses the commands at a terminal (a window where you type commands) and the web portal in a browser. An AI (artificial intelligence) app that cannot start a program reaches the MCP (Model Context Protocol) tools through local HTTP (HyperText Transfer Protocol). Each page names the files that it covers. Two pages explain the checks that a request passes before it reaches the use cases. Read them when you add a command, change how a request is checked, or add a page.

  • The command line: how the commands are registered and tested, what each one opens, and the rules for passwords, prompts and exit codes.
  • Local HTTP mode: the checks of serve --http, the access tokens (the secrets that a program sends with each request), the stateless server, and who gets the question in the chat.
  • The web portal: how the portal starts, how a person signs in, the checks of each request, and how a page is added.

Code covered by this page