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

@alfe.ai/connectwise-automate-mcp

v0.1.0

Published

ConnectWise Automate inventory and monitoring MCP server with Alfe connections

Readme

ConnectWise Automate MCP

Runtime-agnostic stdio MCP server for Automate client, location and endpoint inventory, available scripts, computer monitors, and script/monitor history. Every provider operation requires an explicit Alfe connectionId.

Create a ConnectWise Automate connection in Alfe using the public HTTPS server origin and an integrator username/password. Alfe supplies the vendor ClientID. This server reads Alfe configuration through @alfe.ai/config and resolves fresh connection credentials through AgentApiClient on every call. It requires no ConnectWise environment variables or copied secrets.

The integration manifest starts the first release with:

mcp_servers:
  - id: connectwise-automate
    command: npx
    args: ["-y", "@alfe.ai/[email protected]"]
    env: {}

Call automate_list_connections, then pass the chosen connectionId to:

  • automate_check_connection
  • automate_list_clients
  • automate_list_locations
  • automate_list_computers
  • automate_list_scripts
  • automate_list_monitor_history
  • automate_list_internal_monitor_results
  • automate_list_computer_monitors (also requires computerId)
  • automate_list_computer_script_history (also requires computerId)

List tools accept a 1-based page, pageSize (1–200, default 50), and an Automate condition expression. They return { items, page, pageSize } for one page. Scripts are discovered and their execution history can be inspected; these tools do not execute scripts, reboot computers, or change monitors.

The server calls /cwa/api/v1/ on the selected origin. It caches bearer tokens per connection, refreshes while they are still valid, and reauthenticates after expiration or one failed GET. Credential rotation and revoked Alfe scope take effect on the next tool call. Interactive/2FA login challenges return an actionable connection error.

Private-network and loopback servers are unsupported. Each request resolves the hostname afresh, rejects any non-public DNS answer, and pins the HTTPS socket to a checked IP while retaining TLS hostname validation. Redirects are never followed. Requests, DNS, responses and tool results have explicit bounds; raw provider errors and credential-bearing fields are never forwarded.

API contract and verification

The primary API reference is the ConnectWise Automate developer portal, which requires a ConnectWise developer login. The implementation was checked against its exported Automate API v1 OpenAPI contracts, preserved in the System, Company, Computers, Scripts and Monitors files at that immutable mirror revision. The mirror is independently maintained; it is not a live contract obtained from the customer's server.

Tests exercise the token wire format/lifecycle, endpoint and pagination contracts, connection selection/rotation/revocation, DNS and response bounds, error redaction, and real in-memory MCP protocol requests. No live customer Automate server was available during implementation. Before declaring a deployment operational, configure a real vendor ClientID and integrator connection, run automate_check_connection, page each relevant inventory tool, and verify refresh against the installed Automate version. An account must have the corresponding Automate read permissions; permission failures are reported without widening access.