npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@injaan.dev/ms365-email-cli-mcp

v1.0.7

Published

MCP server wrapper around ms365-email-cli for mailbox operations.

Readme

@injaan.dev/ms365-email-cli-mcp

Model Context Protocol (MCP) server wrapper for ms365-email-cli.

This package exposes mailbox operations as MCP tools and executes the local ms365-email-cli command under the hood.

Prerequisites

  • Node.js 18+
  • ms365-email-cli installed and available in your shell PATH
  • MS365 CLI config already initialized (ms365-email-cli init)

Install

Local project install:

npm install

Global CLI install from npm:

npm install -g @injaan.dev/ms365-email-cli-mcp

Run

From source:

npm start

From global install:

ms365-email-cli-mcp

The server uses stdio transport and is intended to be launched by an MCP-compatible client.

Configure in AI agents (Claude Code, OpenAI Codex, GitHub Copilot)

This package is an MCP stdio server. Most clients only need a command that starts it.

You can use either:

  • Global binary (recommended): ms365-email-cli-mcp
  • Source command: node /absolute/path/to/ms365-email-cli-mcp/index.js

Before configuring any client, verify these are available in the same environment where your AI client runs:

  • ms365-email-cli-mcp
  • ms365-email-cli

1) Claude Code

Add the server (stdio):

# If installed globally
claude mcp add --transport stdio ms365-email-cli -- ms365-email-cli-mcp

# Or run from source
claude mcp add --transport stdio ms365-email-cli -- node /absolute/path/to/ms365-email-cli-mcp/index.js

Useful management commands:

claude mcp list
claude mcp get ms365-email-cli

If you prefer shared project config, Claude Code can also use a project .mcp.json:

{
  "mcpServers": {
    "ms365-email-cli": {
      "type": "stdio",
      "command": "ms365-email-cli-mcp"
    }
  }
}

2) OpenAI Codex (CLI / extension)

Option A - add via CLI:

# If installed globally
codex mcp add ms365-email-cli -- ms365-email-cli-mcp

# Or run from source
codex mcp add ms365-email-cli -- node /absolute/path/to/ms365-email-cli-mcp/index.js

Option B - add in ~/.codex/config.toml (or project .codex/config.toml):

[mcp_servers."ms365-email-cli"]
command = "ms365-email-cli-mcp"

# Alternative source-based form:
# [mcp_servers."ms365-email-cli"]
# command = "node"
# args = ["/absolute/path/to/ms365-email-cli-mcp/index.js"]

Check active servers:

codex mcp --help

3) GitHub Copilot in VS Code

Create .vscode/mcp.json in your workspace (or use MCP: Open User Configuration):

{
  "servers": {
    "ms365-email-cli": {
      "type": "stdio",
      "command": "ms365-email-cli-mcp"
    }
  }
}

Source-based alternative:

{
  "servers": {
    "ms365-email-cli": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/ms365-email-cli-mcp/index.js"]
    }
  }
}

Then in VS Code:

  1. Run MCP: List Servers from Command Palette.
  2. Start/trust ms365-email-cli.
  3. Open Chat and use the tools.

Quick verification prompt (any client)

Try asking your agent:

  • "List my last 5 emails"
  • "Show unread emails"

If tools do not appear, confirm your client process can resolve both ms365-email-cli-mcp and ms365-email-cli in PATH.

Available MCP tools

  • list_emails
  • list_unread_emails
  • read_email
  • thread
  • mark_read
  • search_emails
  • send_email (supports to, cc, subject, body, html, attachments)
  • reply
  • reply_all
  • attachment

Notes

Example MCP tool call shape (send_email)

{
  "name": "send_email",
  "arguments": {
    "to": "[email protected]",
    "cc": ["[email protected]", "[email protected]"],
    "subject": "Hello",
    "body": "Email body",
    "html": false,
    "attachments": ["./report.pdf"]
  }
}

Publish Checklist

  1. Authenticate with npm:

    npm login
  2. Verify the package contents:

    npm pack --dry-run
  3. Publish:

    npm publish
  4. For updates, bump version first:

    npm version patch
    npm publish