Back to Home
sd2k icon

mcp-tokens-action

Verified Safe

by sd2k

Overview

Automates token usage analysis for Model Context Protocol (MCP) servers within GitHub CI/CD workflows, providing cost and complexity insights.

Installation

Run Command
No command provided

Environment Variables

  • ANTHROPIC_API_KEY
  • GITHUB_TOKEN
  • MCP_TOKENS_PROVIDER
  • MCP_TOKENS_MODEL

Security Notes

The `install.sh` script uses `curl ... | sh` to install the underlying `mcp-tokens` CLI, which can be a security risk as it executes a script directly without prior review. This is mitigated by pinning versions and implicitly trusting the `sd2k/mcp-tokens` repository. The action's core functionality involves executing a user-provided `command` within the CI environment, which is an expected feature but means the user is responsible for the security of the command they provide. No hardcoded secrets or direct `eval` calls were found within the action's scripts. GitHub API calls for comments are securely authenticated via `GITHUB_TOKEN`.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Stars0
Forks0
Last Update2026-01-06

Tags

GitHub ActionsCI/CDToken AnalysisMCPDeveloper Tools