Skip to content

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.

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.

KindHydrationSearchToolsWrite-back
agentcore-memoryyesyesyes
mcpyes
pluginyesyesyes
gateway.web-searchyesyes
gateway.bedrock-knowledge-basesyesyes
gateway.aws-contextyesyes

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.

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:

Terminal window
stash create ops --config stash.toml --attach
stash status ops

Repeat 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:

Terminal window
cat /tmp/ops-context/_sources/*.md

Then browse like the agent does:

Terminal window
ls /tmp/ops-context/agentcore-memory/incidents/
grep -ril checkout /tmp/ops-context/agentcore-memory/incidents/
stash tool list ops --source ticketing

stash 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.