amoorion.app.frontends

The front-ends of an Amoorion, on that same setup.

Classes

FrontEnds()

The ways to reach one Amoorion from outside; imported late, as each pulls in its own libraries.

class amoorion.app.frontends.FrontEnds[source]

Bases: object

The ways to reach one Amoorion from outside; imported late, as each pulls in its own libraries.

api()[source]

The HTTP API of this setup, an ASGI application for any server.

Return type:

Any

mcp()[source]

The MCP server of this setup, its methods as tools for agents.

Return type:

Any

mcp_client()[source]

A client talking to this setup’s MCP server in memory: async with amo.mcp_client() as client.

Return type:

Any

cli(*argv)[source]

Run a command line with this setup, as amo.cli("--json", "plugins"); answers the exit code.

Parameters:

argv (str)

Return type:

int

CALL()[source]

A command line as an expression: amo.CALL() / "plugins" >> print.

Return type:

Any

run(*argv, host='127.0.0.1', port=8000)[source]

Run the front-end of flags["mode"]: cli (default), api or mcp.

Parameters:
  • argv (str)

  • host (str)

  • port (int)

Return type:

int