Provider-neutral AI runtime and MCP/Skill gateway for Hub connections, managed responses, and external agents.
Project description
Marona Python SDK
Provider-neutral AI runtime and MCP/Skill gateway for Marona Hub connections, managed responses, and bring-your-own-agent integrations.
pip install marona
1. Marona Hub
Connect Apps and governed Skills as one neutral MCP tool collection.
from marona import Marona
marona = Marona(api_key="YOUR_MARONA_API_KEY")
connection = marona.hub.connect(
apps=["sda-books"],
skills=["download-book"],
)
tools = connection.list_tools()
result = connection.call_tool(
"skill__download_book",
{"request": "Download Steps to Christ"},
)
MCPConnection is not tied to OpenAI, LangGraph, CrewAI, or another model
vendor. It exposes:
connection.list_tools()
connection.call_tool(name, arguments)
connection.server_url
connection.server_urls
connection.session
Marona Hub owns discovery, identity, permissions, App and Skill resolution, approvals, governed execution, and online, offline, or hybrid availability.
Use the asynchronous methods inside an event loop:
connection = await marona.hub.connect_async(
apps=["sda-books"],
skills=["download-book"],
)
tools = await connection.list_tools_async()
result = await connection.call_tool_async(
"skill__download_book",
{"request": "Download Steps to Christ"},
)
2. Marona Runtime
Use responses.create(...) when Marona should manage model reasoning, tool
selection, permission and approval checks, execution, and the final response.
from marona import Marona
marona = Marona(api_key="YOUR_MARONA_API_KEY")
tools = marona.hub.connect(
apps=["sda-books"],
skills=["download-book"],
)
response = marona.responses.create(
model="gpt-5.6",
tools=tools,
input="Download Steps to Christ",
)
print(response.output_text)
The same request supports managed, direct-provider, private, and local models:
model="gpt-5.6" # Marona-managed model
model="openai/gpt-5.6"
model="anthropic/claude-sonnet"
model="google/gemini"
model="ollama/qwen3"
model="litellm/local-qwen"
model="local/qwen"
Register only custom providers or downloaded in-process models:
marona.models.register(
name="office/company-assistant",
endpoint="https://models.office.example/v1",
model="company-assistant-v2",
api_key="YOUR_PROVIDER_KEY",
)
marona.models.register(
name="local/qwen",
executor=qwen_executor,
context_window=8192,
max_output_tokens=512,
)
For asynchronous applications, call await marona.responses.create_async(...).
Images And Documents
response = marona.responses.create(
model="openai/gpt-5.6",
input=[
{
"role": "user",
"content": [
{"type": "input_text", "text": "Summarize this document and image."},
{"type": "input_image", "image_url": "https://example.com/image.jpg"},
{
"type": "input_file",
"filename": "report.pdf",
"file_data": "data:application/pdf;base64,...",
"detail": "high",
},
],
}
],
)
3. Bring Your Own Agent
The external framework owns its Agent, reasoning, and orchestration. Marona supplies neutral MCP tools and retains authorization, approvals, and execution.
OpenAI Agents SDK Example
from marona import Marona
from agents import Agent, Runner
marona = Marona(api_key="YOUR_MARONA_API_KEY")
connection = marona.hub.connect(
apps=["sda-books"],
skills=["download-book"],
)
# Adapt only at the framework boundary. Marona itself remains vendor-neutral.
framework_tools = your_openai_agents_mcp_adapter(connection)
agent = Agent(
name="Book Assistant",
model="gpt-5.6",
instructions="Help users find and download books.",
tools=framework_tools,
)
result = Runner.run_sync(agent, "Download Steps to Christ")
print(result.final_output)
your_openai_agents_mcp_adapter(...) represents the OpenAI-specific adapter at
the framework boundary; it is not part of Marona's vendor-neutral core API.
An MCP-compatible framework can map its standard tool-list and tool-call hooks
directly to connection.list_tools() and connection.call_tool(...). Marona
does not claim that one Python tool object automatically satisfies every agent
framework's proprietary interface.
Execution Modes
Set mode when creating Marona:
marona = Marona(
api_key="YOUR_MARONA_API_KEY",
mode="hybrid",
)
online: network models and online MCP targets are allowed.hybrid: local/private execution may fall back to online execution.offline: only installed local Apps, Skills, data, and local models run.
Changing model never changes App, Skill, permission, approval, or MCP rules.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marona-0.6.1.tar.gz.
File metadata
- Download URL: marona-0.6.1.tar.gz
- Upload date:
- Size: 47.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11b9806207ea4b7785039b11cc9e169e833562f987669c96e5f7d7e8b4e6162
|
|
| MD5 |
fa819f29528ff02a4b7a105beb2dc367
|
|
| BLAKE2b-256 |
b4bea5be3e391666134a45611089d76be52103d220317843a2c5e7dddfdb96f4
|
File details
Details for the file marona-0.6.1-py3-none-any.whl.
File metadata
- Download URL: marona-0.6.1-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b0fd834038b2ebe95ae1bb524fa76ed62d7599b68723842dbe13b7357c5c662
|
|
| MD5 |
e40ea06ca0b0c5192febf060e3f3e924
|
|
| BLAKE2b-256 |
67cdb866013b2d8d3ebeb896debb2f3fa9f09721f84c0c4a560faab71b4240f8
|