Metadata-Version: 2.4
Name: aegis-mcp
Version: 0.1.1
Summary: A deterministic MCP server that maps threat-model context to actionable coding requirements.
Home-page: https://github.com/example/aegis-mcp
Author: Aegis Contributors
Author-email: maintainers@example.com
License: MIT License
        
        Copyright (c) 2026 Aegis Contributors
        
        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.
        
Project-URL: Homepage, https://github.com/bgigurtsis/aegis-mcp
Project-URL: Repository, https://github.com/bgigurtsis/aegis-mcp
Project-URL: Bug Tracker, https://github.com/bgigurtsis/aegis-mcp/issues
Keywords: mcp,security,threat-model,agent-guardrails,ai-coding
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML>=6.0
Requires-Dist: jsonschema>=4.23.0
Requires-Dist: mcp>=1.0.0
Provides-Extra: init-llm
Requires-Dist: anthropic>=0.45.0; extra == "init-llm"
Dynamic: author-email
Dynamic: home-page
Dynamic: license-file

# Aegis MCP (v0.1)

Aegis encodes a project's threat model in `security-context.yaml` and exposes deterministic security guidance through MCP tools for coding agents.

## What Was Executed From the Build Plan

The repository now includes the v0.1 deliverables defined in `aegis-build-plan.md`:

- **Schema design**
  - JSON Schema: `schemas/security-context.schema.json`
  - Example: `examples/security-context.example.yaml`
  - Template: `templates/security-context.template.yaml`
- **MCP server**
  - Tooling surface in `src/aegis/server.py`
  - Tools: `aegis_assess`, `aegis_validate`, `aegis_init`
  - Resource: `aegis://summary`
- **Deterministic assess semantics**
  - Matching/merge/conflict logic in `src/aegis/engine.py`
- **Validation**
  - Schema + normative contract checks in `src/aegis/validation.py`
- **Security context generation**
  - `aegis_init` in `src/aegis/init_tool.py` with Claude-assisted mode and deterministic fallback mode
- **Agent integration templates**
  - `agent-templates/`
- **Reliability feasibility fixtures**
  - `scenarios/trigger-scenarios.jsonl`
  - `scenarios/mock-aegis-assess.json`

## Install

Install from PyPI (recommended):

```bash
python -m pip install aegis-mcp
```

Optional for Claude-assisted `aegis_init`:

```bash
python -m pip install "aegis-mcp[init-llm]"
```

For local development from this repository:

```bash
python -m pip install -e .
```

Optional local development install with Claude-assisted mode:

```bash
python -m pip install -e ".[init-llm]"
```

## Validate a Security Context

```bash
aegis-validate examples/security-context.example.yaml
```

## Start the MCP Server

```bash
aegis-server --config examples/security-context.example.yaml
```

Equivalent command from the build plan:

```json
{
  "mcpServers": {
    "aegis": {
      "command": "python",
      "args": ["-m", "aegis.server", "--config", "./security-context.yaml"]
    }
  }
}
```

## Tool Contract

`aegis_assess` response always includes:

- `requirements`
- `approved_patterns`
- `anti_patterns`
- `matched`
- `warnings`
- `conflicts`
- `no_match`

See `aegis-build-plan.md` and `docs/schema-reference.md` for details.
