Metadata-Version: 2.4
Name: arrowshield-mcp
Version: 0.1.2
Summary: ArrowShield MCP server
Author: ArrowShield
License: MIT License
        
        Copyright (c) 2026 ArrowShield
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: fastmcp>=2.0.0
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: respx>=0.23.0; extra == 'dev'
Description-Content-Type: text/markdown

# arrowshield-mcp

ArrowShield MCP server — security scanning tools for AI coding agents (Cursor, Claude Code, and other MCP-compatible IDEs).

> Private beta — early access. Get an API key at https://app.arrowshield.io/settings/api-keys

## Install

Run directly with [uv](https://docs.astral.sh/uv/) (no install needed):

```bash
uvx arrowshield-mcp
```

Or install into an environment:

```bash
uv pip install arrowshield-mcp     # or: pip install arrowshield-mcp
```

There is also an npm shim that delegates to `uvx`:

```bash
npx @arrowshield/mcp
```

## Configure your IDE

The server runs over stdio and is spawned by your IDE. It needs `ARROWSHIELD_API_KEY` in its environment.

**Cursor** — add to `~/.cursor/mcp.json` (or a project `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "arrowshield": {
      "command": "uvx",
      "args": ["arrowshield-mcp"],
      "env": { "ARROWSHIELD_API_KEY": "as_live_YOUR_KEY" }
    }
  }
}
```

**Claude Code** — one command:

```bash
claude mcp add arrowshield --env ARROWSHIELD_API_KEY=as_live_YOUR_KEY -- uvx arrowshield-mcp
```

Any MCP-compatible client works with the same `command` / `args` / `env` shape.

## Launch / verify

```bash
# Check it's installed
uvx arrowshield-mcp --version

# Run the stdio server (what your IDE launches for you)
ARROWSHIELD_API_KEY=as_live_YOUR_KEY uvx arrowshield-mcp

# Run as a remote HTTP server instead
ARROWSHIELD_API_KEY=as_live_YOUR_KEY uvx arrowshield-mcp serve --host 0.0.0.0 --port 8080
```

### Environment variables

| Variable | Required | Description |
|----------|----------|-------------|
| `ARROWSHIELD_API_KEY` | yes | Your API key (`as_live_…`). |
| `ARROWSHIELD_API_URL` | no | Override the API endpoint (defaults to production). |
| `ARROWSHIELD_PROJECT_DIR` | no | Project directory to scan (defaults to the current working directory). |
