Guide09 / MCP servers
Topics
MCP servers
Tool servers add abilities the agent did not ship with — your issue tracker, your database, your notes. Add one and it becomes another tool the agent can use.
Two ways
Add a server
From the command line
$ cachycli mcp add filesystem \
--command npx --arg -y --arg @modelcontextprotocol/server-filesystem --arg ~/code
$ cachycli mcp list
$ cachycli mcp test filesystem # connect and show its tools
$ cachycli mcp remove filesystemOr in the settings file
[mcp_servers.linear]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.linear.app/mcp"]
[mcp_servers.internal]
url = "https://tools.example.com/mcp"
headers = { authorization = "Bearer ${TOOLS_TOKEN}" }- ▪Local servers run as a command; remote servers are used over HTTP.
- ▪A server added in a project's own settings only applies to that project.
- ▪Environment values can be referenced instead of pasted in.
Using the tools
Connected tools show up alongside the built-in ones. Names are prefixed with the server so you always know where they come from, for example filesystem__read_file.
See what is connected
/mcp
The other direction
Let other agents use CachyCLI
CachyCLI can also act as a tool server itself, so another agent — opencode included — can hand it work.
$ cachycli mcp serve # register it in opencode $ opencode mcp add cachy --command "cachycli mcp serve"
- ▪Ask CachyCLI to run a task in a folder and return the result.
- ▪List the models and recent sessions it knows about.
- ▪Everything it does still follows the same permissions and sessions.
Good to know
A server you add is started on demand; if it fails,
cachycli mcp test <name> shows you the exact error.