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
* fix: use node15 and es2015 when building
* fix: install node@15 types
* fix: improve stats
* fix: long scan loop when asking for keys
* chore: remove lint flag
* chore: remove .js suffixes from imports
* fix: add node15 target to tsup
* chore: remove unnecessary code
* fix: don't use Array.at for node15 support
* fix: add hint for list-dbs
* add a timestamps_to_date tool
* fix: add hint for truncate
* chore: move timestamp_to_date to utils
* fix: add hint for teams
* chore: rename commands
* fix: remove bun-types from tsconfig
* fix: modify hints for stats
* fix: remove dot from hint
Model Context Protocol (MCP) is a [new, standardized protocol](https://modelcontextprotocol.io/introduction) for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for [Upstash Developer API's](https://upstash.com/docs/devops/developer-api).
@@ -20,6 +21,7 @@ This lets you use Claude Desktop, or any MCP Client, to use natural language to
20
21
-[Upstash API key](https://upstash.com/docs/devops/developer-api) - You can create one from [here](https://console.upstash.com/account/api).
21
22
22
23
## How to use locally
24
+
23
25
### Installing via Smithery
24
26
25
27
To install Upstash for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@upstash/mcp-server-upstash):
`NOTE: If the user did not specify a database name for the next command, ask them to choose a database from the list.`
81
+
);
82
+
messages.push(
83
+
"NOTE: If the user wants to see dbs in another team, mention that they need to create a new management api key for that team and initialize MCP server with the newly created key."
89
84
);
85
+
86
+
returnmessages;
90
87
},
91
88
}),
92
89
@@ -140,9 +137,30 @@ ${GENERIC_DATABASE_NOTES}
140
137
},
141
138
}),
142
139
143
-
redis_database_get_usage_stats: tool({
144
-
description: `Get usage statistics of an Upstash redis database over a period of time.
145
-
Available stats: read_latency_mean, write_latency_mean, keyspace, throughput (cmds per second), daily_net_commands, diskusage, command_counts (stats of every command seperately).`,
140
+
redis_database_get_usage_last_5_days: tool({
141
+
description: `Get PRECISE command count and bandwidth usage statistics of an Upstash redis database over the last 5 days. This is a precise stat, not an average.
142
+
NOTE: Ask user first if they want to see stats for each database seperately or just for one.`,
143
+
inputSchema: z.object({
144
+
id: z.string().describe("The ID of your database."),
description: `Get SAMPLED usage statistics of an Upstash redis database over a period of time (1h, 3h, 12h, 1d, 3d, 7d). Use this to check for peak usages and latency problems.
0 commit comments