nanoGATOR

Directory-Based Configuration Example

This directory demonstrates the directory-based configuration format for nanobot.

Structure

directory-config/
├── agents/              # Agent definitions directory
│   ├── main.md          # Main agent (default entrypoint)
│   └── helper.md        # Additional helper agent
├── mcp-servers.yaml     # MCP server definitions
└── README.md            # This file

Agent Files (.md)

Agent .md files are placed in the agents/ subdirectory. Each file defines one agent with YAML front-matter:

Front-Matter Fields

All HookAgent fields are supported in the front-matter:

Markdown Body = Instructions

The markdown content after the front-matter becomes the agent’s instructions.

MCP Servers File

Define MCP servers in mcp-servers.yaml ormcp-servers.json:

myserver:
  url: https://example.com/mcp
  headers:
    Authorization: Bearer ${MY_TOKEN}

Note: You can only have ONE of mcp-servers.yaml or mcp-servers.json, not both.

Usage

Run this directory-based config with:

nanobot run ./examples/directory-config/

Entrypoint Behavior

If a main.md file exists in the agents/ directory, it will automatically be set as the default published entrypoint agent. In this example, the Shopping Assistant is the main agent.