Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</head>

<body>
<script src="/webmcp.js"></script>
<script type="module" src="/src/assets/icons.js"></script>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
Expand Down
10 changes: 10 additions & 0 deletions opencode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"webmcp": {
"type": "local",
"command": ["npx", "-y", "@jason.today/webmcp@latest", "--mcp"],
"enabled": true
}
}
}
Binary file added public/docs/client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/docs/connect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions public/docs/webmcp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# WebMCP in GreptimeDB Dashboard

This page explains how to connect an MCP client (OpenCode / Claude Desktop / etc.) to the GreptimeDB Dashboard via WebMCP.

## 1) Install / Configure WebMCP MCP Server

```json
{
"mcpServers": {
"webmcp": {
"command": "npx",
"args": [
"-y",
"@jason.today/webmcp@latest",
"--mcp"
]
}
}
```

## 2) Generate a token and connect in the Dashboard

1. Start your MCP client.
2. Ask it to **create a WebMCP token**.
3. Open GreptimeDB Dashboard in the browser.
4. Click the **blue WebMCP square** in the bottom-right corner.
5. Paste the token, then click **Connect**.

![connect](./connect.png)
![client](./client.png)

## Notes

- The Dashboard will register tools for GreptimeDB operations. Most workflows should prefer **SQL**; metrics workflows may use **PromQL** when appropriate.
Loading
Loading