Skip to content

Usage — Agent / MCP / CLI

genius-agent exposes its capability three ways: as an integrated agent you drive over ACP / the Web UI, as an MCP tool surface an orchestrator composes, and as a CLI you launch directly. The full capability set and enterprise-readiness matrix are in Overview.

As an MCP server

genius-mcp is the package's native MCP entry point. It exposes the signed source tool below; runtime search credentials, graph connectivity, TLS trust, tenant, and policy are supplied through AgentConfig and the environment. Listing the tool surface does not contact a search provider or graph backend.

Capability Description
genius_ingest_search Run one bounded web search and idempotently materialize its ranked evidence into epistemic-graph.

Start the stdio server:

uvx --from genius-agent genius-mcp

The separate genius-agent entry point consumes tools declared in its mcp_config.json (or reached via MCP_URL) as part of its orchestration plane. Example prompts that drive that agent:

  • "Search the catalog and summarize the top results." → a composed MCP tool call
  • "Plan a multi-step task and execute each step." → graph orchestration

As a Python API

The agent server is launched programmatically through the package entry point. The agent_server() function builds and runs the integrated agent from the environment:

from genius_agent.agent_server import agent_server

# Builds the Pydantic-AI graph agent from API_KEY / MODEL_NAME / DEFAULT_SYSTEM_PROMPT
# and the MCP tool surface, then serves ACP + the Agent Web UI.
agent_server()

Under the hood it composes the agent-utilities building blocks (create_agent_server, build_system_prompt_from_workspace, load_identity, initialize_workspace), so the agent identity, system prompt, and workspace are resolved from the environment and the bundled agent_data/ workspace.

As a CLI

The genius-agent console script is the primary entry point. Provide a model provider and identity, then run:

export API_KEY=your_model_provider_key
export MODEL_NAME=openai/gpt-4o
export DEFAULT_SYSTEM_PROMPT="You are Genius Agent, an orchestration specialist."

# Interactive terminal agent
genius-agent --provider openai --model-id gpt-4o

# Networked agent server with the Web UI + ACP
genius-agent --provider openai --model-id gpt-4o --host 0.0.0.0 --port 9000 --web

Connect the agent to a remote MCP tool surface:

MCP_URL=http://your-mcp-host:8000/mcp \
  genius-agent --provider openai --model-id gpt-4o

Inspect every available flag:

genius-agent --help
genius-mcp --help

Each optional capability reads its own credentials and remains inactive when those credentials are absent. The full environment set is documented in .env.example.

Governed delegation

Do not commit tenant definitions, credentials, identities, or host paths. For delegated use, discover and execute the packaged genius-agent-operations skill through GraphOS. The skill requires a verified tenant/session, current tool discovery, fenced mutations, and sanitized evidence.