You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cluster): add MCP server to work with Platform (#218)
* feat(cluster): add MCP server to work with Platform
* refactor(mcp): inject client into mcp context
* refactor(mcp): use MCP to try and get around logging issues
* refactor(mcp): move cluster health into tool
* fix(MCP): use getattr not getitem to access client
* feat(MCP): add bot info resource, and start/stop bot
* fix(MCP): Catch ImportError for mcp usage
* feat(MCP): add more resources; add docs to existing tools/resources
* refactor(MCP): temporarily use tools instead of resources for stuff
* feat(MCP): add instructions; bot logs tool
* refactor(MCP): make MCP cluster-only, remove platform tools, add config
* feat(MCP): add variable group resources
* refactor(MCP): explicitly declare sse transport only
* feat(MCP): add a prompt for looking at cluster health
* refactor(MCP): change server name slightly
* feat(MCP): add `new_bot` and `remove_bot` tools
* docs(MCP): add notes to code why vargroups are not allowed C-UD methods
* docs(MCP): add some other docs behind design decisions
* feat(MCP): add `update_bot` tool
* refactor(MCP): only import mcp server if command is called
* refactor(CLI): hide display so that MCP server works w/ stdio transport
* refactor(MCP): update to using `fastmcp` because `mcp` module sucks
* refactor(MCP): drop resources, not a good fit
* feat(MCP): add tool to fetch URL of connected cluster
* refactor(MCP): show full bot log entry to see timestamps
* docs(MCP): add documentation for MCP CLI command & Cluster userguide
* style(CLI): fix line too long
* fix(Typing): forgot to install mcp extra for type checking
Copy file name to clipboardExpand all lines: docs/userguides/managing.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,40 @@ Lastly, if you ever feel like you want to delete your Cluster, you can cancel th
45
45
If you are the owner of the Stream, you can do this via the [`silverback cluster pay cancel`][silverback-cluster-pay-cancel] command.
46
46
Only the owner may do this, so if you are not the owner you should contact them to have them do that action for you.
47
47
48
+
## Model Context Server
49
+
50
+
The Silverback package ships with an MCP ([Model Context Protocol](https://modelcontextprotocol.io/quickstart/user)) which you can use via the [`silverback cluster mcp`][silverback-cluster-mcp] command.
51
+
This MCP server must be configured to run locally, and the easiest way to do so is to configure it in your LLM of choice.
52
+
The config for using this with Claude Desktop is as follows:
53
+
54
+
`~/.config/Claude/claude_desktop_config.json`:
55
+
56
+
```json
57
+
{
58
+
"mcpServers": {
59
+
... # Other MCP servers go here
60
+
"silverback": {
61
+
"command": "<path to `uvx` or `uv` binary>",
62
+
"args": [
63
+
"silverback[mcp]",
64
+
"cluster",
65
+
"mcp"
66
+
# Add args `--cluster <cluster name>` to use a Cluster other than your default
67
+
]
68
+
}
69
+
}
70
+
}
71
+
```
72
+
73
+
Once that has been configured, you can ask your LLM to do things like check the status of your cluster, summarize logs of running bots, and restart bots just be commanding it through a chat interface!
74
+
75
+
```{notice}
76
+
The MCP will use the context from [`silverback login`][silverback-login] to execute, so be sure to log in before starting.
0 commit comments