Skip to main content

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.

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)

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

marona-0.6.0.tar.gz (46.8 kB view details)

Uploaded Source

Built Distribution

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

marona-0.6.0-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

File details

Details for the file marona-0.6.0.tar.gz.

File metadata

  • Download URL: marona-0.6.0.tar.gz
  • Upload date:
  • Size: 46.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for marona-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f818aacf5c2f259afd649f295976cba05d29dda4bd5dec7560d1c3b38024c9e4
MD5 500091d471823051d2dc970579c722e8
BLAKE2b-256 b8ba2fd9696634e527491e0b781279c9b4363a5b8a15bd2757a81e3fb3f11622

See more details on using hashes here.

File details

Details for the file marona-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: marona-0.6.0-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

Hashes for marona-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22412a7500b06a8df9584c58edc7515718a705361b4916149a57b03249beabde
MD5 c75ed023c01e3c5926cfab577d4bcce7
BLAKE2b-256 58a35e985a85024835b76d448b8e0e1b124ab87c96dde1b152e9e00ebda5d608

See more details on using hashes here.

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