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
// TODO: Add test for creating hyperdrive config with the following params once we can securely pass parameters to the tool. See: https://github.com/modelcontextprotocol/modelcontextprotocol/pull/382
input: `Create a new Hyperdrive configuration with the name "${HYPERDRIVE_NAME}" and the database "${HYPERDRIVE_DATABASE}" and the host "${HYPERDRIVE_HOST}" and the port "${HYPERDRIVE_PORT}" and the user "${HYPERDRIVE_USER}" and the password "${HYPERDRIVE_PASSWORD}".`,
21
-
expected:
22
-
'The hyperdrive_configs_create tool should be called to create a new hyperdrive configuration.',
22
+
input: `List my hyperdrive configurations.`,
23
+
expected: `The ${HYPERDRIVE_TOOLS.hyperdrive_configs_list} tool should be called to list my hyperdrive configurations.`,
* Registers Hyperdrive tools with the Cloudflare MCP Agent.
24
32
* @param agent The Cloudflare MCP Agent instance.
@@ -28,7 +36,7 @@ export function registerHyperdriveTools(agent: CloudflareMcpAgent) {
28
36
* Tool to list Hyperdrive configurations.
29
37
*/
30
38
agent.server.tool(
31
-
'hyperdrive_configs_list',
39
+
HYPERDRIVE_TOOLS.hyperdrive_configs_list,
32
40
'List Hyperdrive configurations in your Cloudflare account',
33
41
{
34
42
page: HyperdriveListParamPageSchema.nullable(),
@@ -77,81 +85,82 @@ export function registerHyperdriveTools(agent: CloudflareMcpAgent) {
77
85
}
78
86
)
79
87
88
+
// TODO: Once elicitation is available in MCP as a way to securely pass parameters, re-enable this tool. See: https://github.com/modelcontextprotocol/modelcontextprotocol/pull/382
80
89
/**
81
90
* Tool to create a Hyperdrive configuration.
82
91
*/
83
-
agent.server.tool(
84
-
'hyperdrive_config_create',
85
-
'Create a new Hyperdrive configuration in your Cloudflare account',
0 commit comments