Skip to main content
Glama
README.md
<p align="center">
  <img src="https://qwickcert.com/logo.svg" alt="Qwick Cert" width="120" />
</p>

<h1 align="center">@qwickcert/mcp</h1>

<p align="center">
  <strong>AI-powered Windows code signing for Claude, Cursor, and any MCP client</strong>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@qwickcert/mcp"><img src="https://img.shields.io/npm/v/@qwickcert/mcp?color=blue&label=npm" alt="npm version" /></a>
  <a href="https://www.npmjs.com/package/@qwickcert/mcp"><img src="https://img.shields.io/npm/dm/@qwickcert/mcp?color=green" alt="npm downloads" /></a>
  <a href="https://github.com/HardHeadHackerHead/qwickcert-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT License" /></a>
  <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="Node.js >= 18" /></a>
</p>

<p align="center">
  Sign Windows executables, DLLs, and drivers with <strong>Authenticode</strong> via <strong>Azure Trusted Signing</strong> — directly from your AI assistant. No credentials on your machine. No files leave your network.
</p>

---

## How It Works

Your binaries and credentials **never leave your machine or touch the network**. The MCP server uses a **digest proxy** architecture:

```mermaid
sequenceDiagram
    participant AI as AI Assistant
    participant MCP as MCP Server (local)
    participant API as Qwick Cert API
    participant AZ as Azure Trusted Signing

    AI->>MCP: "Sign my-app.exe"
    MCP->>MCP: Compute SHA-256 Authenticode digest (32 bytes)
    MCP->>API: Send only the hash
    API->>AZ: Sign digest with your certificate
    AZ-->>API: RSA signature + cert chain
    API-->>MCP: PKCS#7 signature
    MCP->>MCP: Embed signature into PE file
    MCP-->>AI: "✓ my-app.exe signed successfully"
```

**What crosses the network:** A 32-byte hash. That's it.

**What stays local:** Your .exe, .dll, .sys files, source code, and build artifacts.

---

## Quick Start

### Prerequisites

1. A [Qwick Cert](https://qwickcert.com) account with an active plan
2. The [Qwick Cert CLI](https://www.npmjs.com/package/@qwickcert/cli) installed and authenticated:
   ```bash
   npm install -g @qwickcert/cli
   qwick auth login
   ```
3. Node.js 18+

The MCP server shares authentication with the CLI via `~/.qwick/config.json` — no separate login required.

### Install

No installation needed — runs via `npx`. Just add the configuration to your MCP client:

<details>
<summary><strong>Claude Desktop</strong></summary>

Add to your `claude_desktop_config.json` (`%APPDATA%\Claude\claude_desktop_config.json` on Windows):

```json
{
  "mcpServers": {
    "qwickcert": {
      "command": "npx",
      "args": ["-y", "@qwickcert/mcp"]
    }
  }
}
```

Restart Claude Desktop to activate.
</details>

<details>
<summary><strong>Claude Code (CLI)</strong></summary>

```bash
claude mcp add qwickcert -- npx -y @qwickcert/mcp
```

That's it — available immediately.
</details>

<details>
<summary><strong>Cursor</strong></summary>

Add to your Cursor MCP settings (Settings > MCP Servers):

```json
{
  "mcpServers": {
    "qwickcert": {
      "command": "npx",
      "args": ["-y", "@qwickcert/mcp"]
    }
  }
}
```
</details>

<details>
<summary><strong>Windsurf / Other MCP Clients</strong></summary>

Any MCP-compatible client can use this server. The transport is **STDIO** — configure your client to launch:

```bash
npx -y @qwickcert/mcp
```
</details>

---

## What Can You Do?

Once connected, just talk naturally to your AI assistant:

> **"Sign my build output"** — discovers and signs PE files in your project
>
> **"Check if my app is properly signed"** — verifies Authenticode signatures
>
> **"Set up code signing for my Rust project"** — detects frameworks, creates config
>
> **"Create a CI/CD signing pipeline"** — generates GitHub Actions/Azure DevOps/GitLab config
>
> **"Why is signing failing?"** — runs diagnostics and identifies the issue

---

## Tools

17 tools for every stage of the code signing workflow:

### Signing & Verification

| Tool | Description |
|------|-------------|
| `qwickcert_sign_files` | Sign PE files (.exe, .dll, .sys, .drv, .ocx, .scr) with Authenticode. Computes digest locally, sends only the 32-byte hash. Supports batch signing, dry runs, and auto-verification. |
| `qwickcert_verify_signature` | Verify Authenticode signatures using Windows `signtool`. Returns signer, issuer, hash algorithm, timestamp, and certificate chain. |
| `qwickcert_inspect_file` | Inspect PE files without signing — architecture (x86/x64/ARM64), subsystem (GUI/Console), format (PE32/PE32+), signing status, and Authenticode digest. |
| `qwickcert_discover_files` | Scan directories for signable PE files. Detects 30+ frameworks (Rust, .NET, Electron, Tauri, Go, Unity, etc.), filters runtime DLLs and build intermediaries, classifies by type. |

### Project Setup

| Tool | Description |
|------|-------------|
| `qwickcert_setup_project` | Create or update `.qwickrc.json` project config. Auto-detects frameworks and suggests file patterns. |
| `qwickcert_setup_status` | Track Azure Trusted Signing provisioning progress step-by-step. Retry failed steps. |
| `qwickcert_check_status` | Quick status check — auth state, organization, plan tier, project config, setup status. |
| `qwickcert_troubleshoot` | Full diagnostics — auth, signtool, API connectivity, Azure setup, project config, common issues. |

### Team & Security

| Tool | Description |
|------|-------------|
| `qwickcert_manage_apikey` | Create, list, or revoke API keys for CI/CD. Scope keys to specific projects with expiration dates. |
| `qwickcert_team_overview` | View team members, roles (owner/admin/signer), and invitation status. |
| `qwickcert_org_manage` | Invite members, remove members, or update roles. |
| `qwickcert_policy_check` | Check signing policies — IP allowlists, time restrictions, approval requirements, file restrictions. |
| `qwickcert_approval_requests` | List, approve, or reject pending signing requests that require admin sign-off. |
| `qwickcert_2fa` | Check 2FA status or verify a TOTP code for policies requiring two-factor auth. |

### Billing & History

| Tool | Description |
|------|-------------|
| `qwickcert_billing_usage` | Check plan tier, member limits, signing quotas, and 30-day volume. |
| `qwickcert_signing_history` | Query recent signing operations. Filter by status, date, or project. |
| `qwickcert_session_status` | View active concurrent signing sessions (Azure allows max 2 per org). |

---

## Resources

Read-only reference data your AI assistant can access for context:

| Resource | URI | Description |
|----------|-----|-------------|
| Configuration | `qwickcert://config` | Current auth state, org info, and project config |
| Policies | `qwickcert://policies` | Active signing policies and restrictions |
| Activity | `qwickcert://activity` | Recent signing activity and team patterns |
| Quick Start | `qwickcert://docs/quick-start` | Getting started guide |
| Error Codes | `qwickcert://docs/error-codes` | Complete `QWICK_*` error code reference with remediation steps |
| Security | `qwickcert://docs/security` | Security model and best practices |

---

## Prompts

Guided multi-step workflows your AI assistant can run:

| Prompt | Description | Try it |
|--------|-------------|--------|
| `qwickcert-sign` | End-to-end signing workflow — checks auth, discovers files, creates config if needed, signs, and verifies | *"Use the qwickcert-sign prompt"* |
| `qwickcert-setup` | Interactive project setup — detects your framework, suggests file patterns, creates `.qwickrc.json` | *"Use the qwickcert-setup prompt"* |
| `qwickcert-troubleshoot` | Step-by-step diagnostics — identifies and fixes signing issues | *"Use the qwickcert-troubleshoot prompt"* |
| `qwickcert-cicd` | CI/CD integration wizard — generates pipeline config for GitHub Actions, Azure DevOps, or GitLab CI | *"Use the qwickcert-cicd prompt"* |
| `qwickcert-audit` | Security audit — reviews policies, activity, team access, and API key hygiene | *"Use the qwickcert-audit prompt"* |

---

## Supported Frameworks

The MCP server auto-detects your project's framework and suggests the right files to sign:

| Category | Frameworks |
|----------|------------|
| **Desktop** | Tauri, Electron, Flutter Windows, Qt, Wails, React Native Windows, .NET MAUI |
| **Native** | Rust, Go, C/C++ (MSVC), CMake, Delphi, Zig |
| **Runtime** | .NET, Java (jpackage/GraalVM), Kotlin Multiplatform |
| **Packagers** | PyInstaller, Nuitka, cx_Freeze, Node.js (pkg/nexe/SEA) |
| **Installers** | NSIS, Inno Setup, WiX Toolset |
| **Games** | Unity, Unreal Engine, Godot |
| **Special** | Windows Drivers (WDK), AutoHotkey |

It also filters out runtime DLLs you shouldn't sign (vcruntime, .NET system libraries, Qt internals, etc.) so you only sign what's yours.

---

## Security

This is a code signing tool — security is the foundation, not an afterthought.

```mermaid
flowchart LR
    subgraph Your Machine
        A[PE File] --> B[MCP Server]
        B --> C[SHA-256 Digest<br/>32 bytes]
    end

    subgraph Qwick Cert Cloud
        C --> D[Qwick Cert API]
        D --> E[Azure Trusted<br/>Signing]
    end

    E --> F[PKCS#7<br/>Signature]
    F --> B
    B --> G[Signed PE File]

    style A fill:#f9f,stroke:#333
    style G fill:#9f9,stroke:#333
    style C fill:#ff9,stroke:#333
```

| Property | Detail |
|----------|--------|
| **Credentials** | Never stored locally. Auth tokens from CLI login, auto-refreshed, never logged. |
| **Your files** | Never uploaded. Only a 32-byte SHA-256 hash crosses the network. |
| **Transport** | STDIO only — no network listeners, no open ports, no HTTP server. |
| **Private keys** | Held by Azure Trusted Signing in FIPS 140-2 Level 3 HSMs. Never extractable. |
| **Sessions** | Short-lived (seconds). Abandoned sessions auto-revoked after 10 minutes. |
| **API keys** | Prefixed `qwick_ak_*` for identification. Scoped to projects. Expiration enforced. |

To report a security vulnerability, see [SECURITY.md](SECURITY.md).

---

## Troubleshooting

<details>
<summary><strong>"Not authenticated" errors</strong></summary>

Make sure you're logged in via the CLI:

```bash
qwick auth login
```

The MCP server reads credentials from `~/.qwick/config.json`, which is created by the CLI.
</details>

<details>
<summary><strong>"signtool not found" warnings</strong></summary>

Signature verification requires the Windows SDK `signtool.exe`. Install the [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) or Windows Build Tools. Signing works without signtool — only verification needs it.
</details>

<details>
<summary><strong>"Max concurrent sessions" errors</strong></summary>

Azure Trusted Signing allows 2 concurrent signing sessions per organization. Wait for active sessions to complete or check `qwickcert_session_status` for details. Abandoned sessions are auto-cleaned after 10 minutes.
</details>

<details>
<summary><strong>"2FA required" errors</strong></summary>

Your organization's signing policy requires two-factor authentication. Use `qwickcert_2fa` with action `verify` and your 6-digit TOTP code, then retry signing.
</details>

<details>
<summary><strong>Signing succeeds but verification fails</strong></summary>

Ensure your system clock is accurate — Authenticode timestamps from `timestamp.acs.microsoft.com` are validated against your local time. Also verify you have the latest Windows root certificates installed.
</details>

<details>
<summary><strong>Need more help?</strong></summary>

- Run `qwickcert_troubleshoot` for automated diagnostics
- Visit [qwickcert.com/support](https://qwickcert.com/support) for platform support
- Check [error codes](https://qwickcert.com/docs/error-codes) for specific `QWICK_*` errors
</details>

---

## Development

```bash
# Clone the repo
git clone https://github.com/HardHeadHackerHead/qwickcert-mcp.git
cd qwickcert-mcp

# Install dependencies
npm install

# Build
npm run build

# Watch mode for development
npm run dev
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.

---

## Links

- [Qwick Cert Website](https://qwickcert.com)
- [Documentation](https://qwickcert.com/docs)
- [MCP Server Docs](https://qwickcert.com/docs/mcp)
- [CLI on npm](https://www.npmjs.com/package/@qwickcert/cli)
- [Security Policy](SECURITY.md)
- [Changelog](CHANGELOG.md)

---

<p align="center">
  <a href="https://qwickcert.com">qwickcert.com</a> &mdash; Windows code signing, simplified.
</p>

## License

MIT — see [LICENSE](LICENSE) for details.

TDQS

A3.6/5.0

Scored across 17 tools

Disambiguation4/5

Most tools target clearly distinct resources/actions (sign, verify, inspect, discover, billing, team, policy, approvals, 2FA). There is mild overlap among qwickcert_check_status, qwickcert_setup_status, and qwickcert_troubleshoot, but their descriptions explicitly cross-reference each other to route the agent correctly.

Naming Consistency4/5

All tools share the qwickcert_ prefix and snake_case, which is highly predictable. Most follow verb_noun, though a few are noun-based (billing_usage, team_overview, signing_history, session_status) and one is qwickcert_2fa, which is a minor deviation but still readable.

Tool Count4/5

17 tools is slightly on the heavy side, but the domain is broad (signing, verification, file discovery, setup, billing, team/org, policies, approvals, 2FA, diagnostics). Each tool appears to earn its place, so the count is reasonable rather than bloated.

Completeness4/5

Coverage is strong: signing lifecycle (discover, inspect, sign, verify), history/sessions, setup project and provisioning, billing, team/org management, API keys, policies, approvals, and 2FA are all present. Minor gaps exist, e.g. policy_check is read-only with no tool to create/update policies, but core workflows have no dead ends.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues