One interface
Your agent reads every source the same way: as files in one tree. You don’t write a tool for each source, and the agent doesn’t carry a schema for each one. Add a source with a few lines of config, or with a plugin.
How Stash does it
Section titled “How Stash does it”Each source in the config is one folder below the mount point, at KIND/NAME/. A dot in
the kind becomes a folder level, so [sources.runbooks] with
kind = "gateway.bedrock-knowledge-bases" shows at
gateway/bedrock-knowledge-bases/runbooks/.
Each source also gets one page, _sources/NAME.md. The page says what the source holds,
where its files are, whether it takes a search, and which tools it has. The steering
block tells the agent to read these pages first. The local store has its own page,
_sources/local.md.
| Kind | Hydration | Search | Tools | Write-back |
|---|---|---|---|---|
agentcore-memory | yes | yes | yes | |
mcp | yes | |||
plugin | yes | yes | yes | |
gateway.web-search | yes | yes | ||
gateway.bedrock-knowledge-bases | yes | yes | ||
gateway.aws-context | yes | yes |
The source files are read-only, so the agent can’t change source data by editing them.
For a harness that prefers tools, stash mcp serves the same search and tool calls as
one MCP server. The tree stays the same. See
Attachment modes.
With first-party sources. The _sources/ pages of web search and AWS Context also
tell the agent how to search them well. For example, the AWS Context page says to ask
one complete question in each search.
Try it
Section titled “Try it”This config mounts three sources for an ops agent: Amazon Bedrock AgentCore Memory, a runbook knowledge base behind an Amazon Bedrock AgentCore Gateway, and a ticketing MCP server.
Before you use it, create the memory and Gateway target, configure AWS credentials that
can read them, and export TICKETING_MCP_TOKEN. Replace each REPLACE-ME value and the
tickets.example.com URL with resources that you can access.
mount_point = "/tmp/ops-context"harnesses = ["claude"]
[sources.incidents]kind = "agentcore-memory"description = "Summaries of past incidents"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/REPLACE-ME"auth = { sigv4 = {} }
[sources.runbooks]kind = "gateway.bedrock-knowledge-bases"description = "Service runbooks"gateway_url = "https://REPLACE-ME.gateway.bedrock-agentcore.us-east-1.amazonaws.com/mcp"target = "runbooks-kb"auth = { sigv4 = {} }
[sources.ticketing]kind = "mcp"description = "Incident tickets"url = "https://tickets.example.com/mcp"auth = { bearer = { env = "TICKETING_MCP_TOKEN" } }Create the mount:
stash create ops --config stash.toml --attachstash status opsRepeat stash status ops until it shows state: ready and each configured source shows
started. If a source shows not started, fix the displayed error before you continue.
Then read the pages the agent reads first:
cat /tmp/ops-context/_sources/*.mdThen browse like the agent does:
ls /tmp/ops-context/agentcore-memory/incidents/grep -ril checkout /tmp/ops-context/agentcore-memory/incidents/stash tool list ops --source ticketingstash tool list prints each tool of the mcp and Gateway sources with the path of its
schema file, such as mcp/ticketing/_tools/get_ticket.json. The tool names come from the
server.
See Sources for the source count, name rules, and reserved names.
Next steps
Section titled “Next steps”- Connect sources: a config for each kind.
- The mount: the full layout of the tree.
- Write a plugin: mount a store that Stash has no kind for.