From 9011f6f673da1b01942e4ea9a9f3783268cd6011 Mon Sep 17 00:00:00 2001 From: Topher Hindman Date: Mon, 16 Mar 2026 15:18:46 -0700 Subject: [PATCH] feat: add pricing-info subcommand to docs CLI Adds `lk docs pricing-info` which calls the get_pricing_info MCP tool to return LiveKit Cloud pricing plans, feature comparison, inference model pricing, and calculator assumptions. Also bumps expectedServerVersion to 1.4 to match the server version that introduced this tool. --- cmd/lk/docs.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/lk/docs.go b/cmd/lk/docs.go index dec431f0..241bc9d5 100644 --- a/cmd/lk/docs.go +++ b/cmd/lk/docs.go @@ -43,7 +43,7 @@ const docsRequestTimeout = 30 * time.Second // server that this CLI was built against. If the server reports a newer // major or minor version, a warning is printed to stderr suggesting the // user update their CLI. -var expectedServerVersion = [2]int{1, 3} +var expectedServerVersion = [2]int{1, 4} var ( DocsCommands = []*cli.Command{ @@ -219,6 +219,14 @@ SDKs, and agent frameworks) with their package names for each platform. Useful for cross-referencing dependencies and finding the right SDK.`, Action: docsListSDKs, }, + { + Name: "pricing-info", + Usage: "Get LiveKit Cloud pricing information", + Description: `Returns LiveKit Cloud pricing information including plans, feature +comparison matrix, inference model pricing, and calculator assumptions. +Use this when you need details about pricing, costs, plans, or billing.`, + Action: docsPricingInfo, + }, { Name: "submit-feedback", Usage: "Submit feedback on the LiveKit documentation", @@ -348,6 +356,10 @@ func docsListSDKs(ctx context.Context, cmd *cli.Command) error { return callDocsToolAndPrint(ctx, cmd, "get_sdks", map[string]any{}) } +func docsPricingInfo(ctx context.Context, cmd *cli.Command) error { + return callDocsToolAndPrint(ctx, cmd, "get_pricing_info", map[string]any{}) +} + func docsSubmitFeedback(ctx context.Context, cmd *cli.Command) error { feedback := cmd.String("feedback") if feedback == "" && cmd.Args().Len() > 0 {