Connecting an agent
Everything here is Settings → MCP. Each control on that pane is one line of ~/.objectexplorer/settings/mcp.yaml, and the file is read again whenever it changes — so editing it in the pane and editing it in an editor are the same act.
1. Write a starting rule file
With no file, nothing is reachable and the pane says so, and lists what a starting file would grant before you write it. Write a Starting Rule File creates one:
- the folders already in your window, as roots
- seven of the eight tools, every one of them read only: a query is one
SELECT, and nothing is changed, moved or deleted. What a tool reads of a table, a JSON file or a document goes through the PII rules first. The eighth,getRawFile, is left off: it hands a file over as it is - the PII floor: column rules for email, phone, national id, card and account numbers, and text rules for an email address and a phone number inside any value, plus the detectors for personal numbers, cards, IBANs, names and street addresses
- the deny floor:
.env,*.pem,*.key,*.p12,*.pfx,*.kdbx,.git/,.ssh/,.aws/,.azure/, anything withsecret,credential,passwordortokenin the path - modest limits: 1000 rows and 8 MB a call, 256 MB a session, 1 GB a day, 60 calls a minute
- the door shut, and no client installed
Everything past that is a line you set.
2. Open the door
Turn On and Turn Off, beside The door is shut / The door is open. Under it, what an agent can reach once it is open, and the endpoint every client calls:
Endpoint http://127.0.0.1:9421/api/mcpIt is the app's own port, the one the window is served on, at /api/mcp: 9421, or another free one when something else holds 9421. When it moves, the app writes the new address into every client it installed.
Each agent has a token of its own, and the token is who it is. Install (below) makes one for the client it installs; Add Agent under Tokens makes one for anything else, by a name you give it (reportBot). The log, the budgets and the agent's own lines in the rule file follow the token, never the name a client gives itself, and Remove (or Uninstall) takes the token away so a copy of it left anywhere opens nothing. The tokens live in the rule file:
agents:
reportBot:
token: 7f2a1c4e9b8d3a6f5e0c2b7d4a9f1e83
tools: [listRoots, listObjects, query] # instead of tools, for this agent
limits: { rowsPerCall: 100 } # over limits
deny: ["^hr/"] # added to deny
columns: [...] # PII rules tried before the file's
text: [...]A root can be one agent's (agents: [reportBot]) and only part of it (prefixes: [exports/2024/]). An older rule file's one server.token still works, the old way: whoever holds it names itself, and the name must be ticked under install.
The endpoint answers only a call from this machine, in every mode — the desktop app, npx objectexplorer, the browser front door. A call from another machine, or from a web page that is not on this machine, is refused before anything is read.
3. Install into a client
| Client | Button writes |
|---|---|
| Claude Code | ~/.claude.json, mcpServers.objectexplorer |
| Codex | ~/.codex/config.toml, [mcp_servers.objectexplorer] |
Under Agents, Install writes the entry, the URL and the token into that client's own config. Nobody types a token anywhere. Uninstall takes it back out and touches nothing else in the file. A client that is not on this machine says not found on this machine and its button is dead.
For anything else that speaks MCP's Streamable HTTP transport, Copy Connection puts the whole block on the clipboard, already shaped:
{
"objectexplorer": {
"type": "http",
"url": "http://127.0.0.1:9421/api/mcp",
"headers": { "Authorization": "Bearer 7f2a1c4e9b8d3a6f5e0c2b7d4a9f1e83" }
}
}Each token's own Copy Connection puts the address and that agent's token on the clipboard. Budgets — bytes per session and per day — are counted per agent and kept across a restart.
An agent that has a shell but no MCP client reads through the command line instead: with its token in OE_TOKEN, oe ls, oe stat, oe schema, oe cat, oe search and oe get each make one call through this same door, so the rules, the PII floor, the budget and the log are the same as over MCP. → Reading as an agent
4. Choose what may be called
Eight tools, ticked one by one.
| Tool | Answers |
|---|---|
listRoots | what is reachable at all — an agent starts here |
listObjects | the children of one folder |
describeObject | size, time, format and columns of one object |
columnSummary | per-column statistics of a tabular object |
searchText | a pattern in one object, or in every object in a folder |
query | one SQL statement, over objects named by URI |
getObject | one object read whole: rows, text or a tree, by what it is |
getRawFile | one object as it is: a picture as an image to look at, else a file |
query and getObject are the two worth thinking about: they are the ones that read a whole object rather than describe one. query is what makes the app an analysis engine for the agent rather than a catalogue. Both answer through the PII rules, and getObject refuses bytes no rule can check — an archive, a model. Untick either one if an agent should only look, not read.
getRawFile is the one tool the PII rules do not pass: it sends the file's own bytes, up to the largest-object limit, so an agent can look at a picture, a chart or a scan. Tick it only for roots where that is what you want.
searchText searches a document's or code's lines, a table's rows (each hit the row as a CSV line) and a JSON or YAML tree, always after the PII rules: a dropped column is not searched, and a rewritten one is searched as it was rewritten.
An agent names everything by the same URI the app writes into SQL — gs://bucket/key, s3://bucket/key, az://account/container/key, and root/key for a local folder you mounted.
5. Tick the roots
Allow roots is one tick per root already in this window. A ticked root is reachable in full; nothing unticked is reachable at all. What narrows a ticked root is Deny rules — one list that holds in every root, so a decision about .env is made once.
Approve rules is the third list: a path matching one of them stops and asks a person, in the window, before anything runs. Nothing runs while the prompt is up, and no answer within five minutes is a no.
→ the full file, key by key: the MCP rule file
6. Try a rule before an agent does
Test a rule takes an object named the way an agent would name it, a tool, and a content box, and answers with the verdict, the rule that decided it, and the content in the form it would go to the agent — the header without the dropped columns, the values masked or encrypted, the free-text field rewritten in place.
name,email,phone,personalNumber,geo_lat,city,amount,note ← as it is
Rockie Yang,rockie.yang@example.com,+46 70 123 45 67,19850613-1234,55.60587,…
name,email,phone,personalNumber,city,amount,note ← as it goes
Rock*e Yang,yqsbgn.wbce@seeqzli.qpk,+07 48 108 80 21,24519676-4457,…Nothing is read and nothing is logged, and the object need not exist — it runs the real gate and the real column plan.
What a denial looks like to the agent
A denial is not an error. The call was well formed and the answer is no, so it comes back as a tool result that names the step and the rule:
denied: gs://sales-lake/exports/hr/staff.parquet (step: path, rule: deny (secret|credential|password|token))An agent told which rule stopped it stops guessing. One told only "error" tries the same call four more ways, on your budget.
A listing behaves differently: it hides what it may not show and reports how many it hid. An agent that cannot see exports/hr/ should not learn the folder exists from a hole in the list.
Next: PII rules.