Skip to main content

A deterministic MCP server that maps threat-model context to actionable coding requirements.

Project description

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):

python -m pip install aegis-mcp

Optional for Claude-assisted aegis_init:

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

For local development from this repository:

python -m pip install -e .

Optional local development install with Claude-assisted mode:

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

Validate a Security Context

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

Start the MCP Server

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

Equivalent command from the build plan:

{
  "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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aegis_mcp-0.1.1.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aegis_mcp-0.1.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file aegis_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: aegis_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aegis_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bad014480b3e54d92b46c2d97daed5888f4e678e5754ea7396c6883d86048797
MD5 e7542bb247c64d5a9745592f467ce769
BLAKE2b-256 7b8871e2dd0d3c8d54759a55fa557c1b1e05e03467ebb8d9387f0d1956d4225b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_mcp-0.1.1.tar.gz:

Publisher: publish.yml on bgigurtsis/aegis-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aegis_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aegis_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aegis_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ab94fbdfb84667c3a42c13d771ae4dc734f603dcdffb45b8fb1babe64aabc3d
MD5 69284675ba7f93bf94ca329f5d6008c1
BLAKE2b-256 d493f69ab10c14b6a310c5e6ca5bd90b9518bde43438287a5453007d4d20cf86

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on bgigurtsis/aegis-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page