Skip to content

Commit 9011f6f

Browse files
committed
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.
1 parent 65dbf8f commit 9011f6f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cmd/lk/docs.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const docsRequestTimeout = 30 * time.Second
4343
// server that this CLI was built against. If the server reports a newer
4444
// major or minor version, a warning is printed to stderr suggesting the
4545
// user update their CLI.
46-
var expectedServerVersion = [2]int{1, 3}
46+
var expectedServerVersion = [2]int{1, 4}
4747

4848
var (
4949
DocsCommands = []*cli.Command{
@@ -219,6 +219,14 @@ SDKs, and agent frameworks) with their package names for each platform.
219219
Useful for cross-referencing dependencies and finding the right SDK.`,
220220
Action: docsListSDKs,
221221
},
222+
{
223+
Name: "pricing-info",
224+
Usage: "Get LiveKit Cloud pricing information",
225+
Description: `Returns LiveKit Cloud pricing information including plans, feature
226+
comparison matrix, inference model pricing, and calculator assumptions.
227+
Use this when you need details about pricing, costs, plans, or billing.`,
228+
Action: docsPricingInfo,
229+
},
222230
{
223231
Name: "submit-feedback",
224232
Usage: "Submit feedback on the LiveKit documentation",
@@ -348,6 +356,10 @@ func docsListSDKs(ctx context.Context, cmd *cli.Command) error {
348356
return callDocsToolAndPrint(ctx, cmd, "get_sdks", map[string]any{})
349357
}
350358

359+
func docsPricingInfo(ctx context.Context, cmd *cli.Command) error {
360+
return callDocsToolAndPrint(ctx, cmd, "get_pricing_info", map[string]any{})
361+
}
362+
351363
func docsSubmitFeedback(ctx context.Context, cmd *cli.Command) error {
352364
feedback := cmd.String("feedback")
353365
if feedback == "" && cmd.Args().Len() > 0 {

0 commit comments

Comments
 (0)