Metadata-Version: 2.4
Name: archscan-mcp
Version: 0.1.0
Summary: MCP server for NeuroScan: analyze and fix Python projects from an agent.
Author: NeuroMomentum DOO
License: MIT
Keywords: mcp,python,static-analysis,code-review
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# archscan-mcp

The NeuroScan MCP server (stdio): five tools an agent can call against a Python project.

- `archscan_account` — balance, free projects, limits
- `archscan_analyze` — a local zip path or a public GitHub repo
- `archscan_status` — job status and findings
- `archscan_fix` — fix every finding or selected ids; `dry_run` prices it first
- `archscan_download` — save the patched project or HTML report

## Install

```bash
pipx install archscan-mcp
```

or run from a checkout:

```bash
python3 /opt/neuroscan/mcp/archscan_mcp.py
```

## Configure

```json
{
  "mcpServers": {
    "archscan": {
      "command": "archscan-mcp",
      "env": {
        "ARCHSCAN_API_KEY": "ask_...",
        "ARCHSCAN_BASE": "https://neuromomen.com"
      }
    }
  }
}
```

Get an API key at https://neuromomen.com/account. The server speaks MCP `2025-06-18` over stdin/stdout and has no
third-party dependencies.

## Tools

Every tool returns the same JSON shape as the HTTP API (`/api/v1/openapi.json`). Failures are `isError: true` with
`class` and `next` intact.

Analysis is free; `archscan_fix` spends the account's token balance. Use `dry_run: true` first.

## Development

```bash
python3 -m pip install build
python3 -m build
python3 -m pip install dist/archscan_mcp-0.1.0-py3-none-any.whl
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"probe","version":"0"}}}' | archscan-mcp
```
