Connector Integration
MonoSurf is a CLI binary. connector.json defines how CLI binaries are invoked. They connect naturally.The Pattern
Intent Field
connector.json v2.1 addsintent to StepDefinition:
intent: "read"— safe, AI can execute freely within grantintent: "write"— mutates state, cjson runner prompts for confirmation
Pipeline Example
A connector.json can define a full discover → dive → engage pipeline:observe → control flow.
Same Pattern, Every Tool
connector.json doesn’t know or care that MonoSurf uses Chrome CDP internally. It sees a CLI binary with arguments and output. The same connector.json format works for:| Tool | Transport | connector.json sees |
|---|---|---|
| monosurf | chromiumoxide CDP | binary: "monosurf" |
| monofetch | HTTP | binary: "monofetch" |
| monogit | Git API | binary: "monogit" |
| niia | Local CLI | binary: "niia" |
Running via cjson
- Loads connector.json
- Resolves
{variables}from CLI arguments - Executes binary with args
- Matches output against rules
- Suggests next actions
- Gates write operations with approval prompts