Metadata-Version: 2.4
Name: scoped-execution-protocol
Version: 2.0.0
Summary: Python SDK for SXP (Scoped Execution Protocol), with guarded tool execution and MCP, A2A, and AG-UI adapters.
Author: Matthew Major
License-Expression: MIT
Project-URL: Homepage, https://github.com/matthewmajo/sxp
Project-URL: Documentation, https://github.com/matthewmajo/sxp/blob/main/spec/SPEC.md
Project-URL: Repository, https://github.com/matthewmajo/sxp
Project-URL: Issues, https://github.com/matthewmajo/sxp/issues
Project-URL: Changelog, https://github.com/matthewmajo/sxp/releases
Keywords: ai-agents,sxp,mcp,model-context-protocol,a2a,agent2agent,ag-ui,agent-protocol,multi-agent,prompt-injection,llm-security,tool-calling,openapi,privacy,security,zero-dependencies
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# SXP Python SDK

Zero-dependency Python SDK and CLI v2.0.0 for **SXP (Scoped Execution Protocol)**.

## Install

```bash
python -m pip install "https://github.com/matthewmajo/sxp/releases/download/v2.0.0/scoped_execution_protocol-2.0.0-py3-none-any.whl"
```

The distribution is named `scoped-execution-protocol`. Use `import sxp` in Python and `sxp` at the command line.

## Quickstart

```python
from sxp import AgentKernel, AppConnector, EffectClass, HardRail

app = AppConnector("notes", summary="Local markdown notes", untrusted=False)

@app.tool(effect=EffectClass.READ)
def search_notes(query: str, limit: int = 5):
    """Search saved markdown notes."""
    return {"query": query, "limit": limit}

kernel = AgentKernel(rails=[HardRail.require_preview_for_writes(), HardRail.block_tainted_egress()])
kernel.connect_app(app)
```

## CLI

```bash
python3 -m sxp host-config --host cursor --config .mcp.json
# or once installed:
sxp host-config --host cursor --config .mcp.json
```

## Documentation

- Repository: https://github.com/matthewmajo/sxp
- Specification: [spec/SPEC.md](https://github.com/matthewmajo/sxp/blob/main/spec/SPEC.md)
