Metadata-Version: 2.4
Name: oceanalt-mcp
Version: 0.1.0
Summary: OceanAlt pre-payment check for AI agents: allow, review or decline before your agent pays. Includes an Amazon Bedrock AgentCore pre_sign_policy.
Author-email: OceanAlt <business@oceanalt.com>
License: MIT
Project-URL: Homepage, https://oceanalt.com
Project-URL: Documentation, https://oceanalt.com/en/api-docs
Keywords: oceanalt,ai-agents,agent-payments,x402,pre-payment,mcp,agentcore
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# oceanalt-mcp

OceanAlt pre-payment check for AI agents: before your agent pays, ask whether the payment should proceed. Returns `allow`, `review` or `decline` with reasons and evidence.

```python
from oceanalt_mcp import decide
r = decide("0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b", network="ethereum")
print(r["decision"])  # decline: a known mixer
```

## Amazon Bedrock AgentCore payments

Use it as the `pre_sign_policy` of your payments integration config. It returns `True` only when every payee in the payment request gets `allow`. A decline, a review, a timeout or a request it cannot read returns `False`, so the payment is not signed. Reads x402 v1 bodies and the x402 v2 `Payment-Required` header.

```python
from oceanalt_mcp import agentcore_pre_sign_policy
# config = <your AgentCore payments integration config>(..., pre_sign_policy=agentcore_pre_sign_policy)
```

Free, no key, no dependencies. Docs: https://oceanalt.com/en/api-docs · Hosted MCP server: https://oceanalt.com/api/mcp
