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.0.tar.gz (26.4 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.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aegis_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 26.4 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.0.tar.gz
Algorithm Hash digest
SHA256 9f67409a04cc6cdbdcc0020b1b8764fb76eb4e368d6063f8216f60382e0d96fa
MD5 0cb9c460bea23205c1841547abc5c2d9
BLAKE2b-256 08437a59c22f3faf04bd510ac896138a1330842f67860bd1ba79d1caf46ec232

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_mcp-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: aegis_mcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e8381e6663a3c330ec61dfb1a418305f2e4081347d580fbf5bd516dc5e0a352
MD5 8566d632a5d0c5c9a03c06082739cff9
BLAKE2b-256 6b8ef0d462235165d58c9ef06dfdc729808ae24008ae8a2963d8479f72b3619a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aegis_mcp-0.1.0-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