@lobstack-ai/mcp 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The MCP server: four tools over the Lobstack Gateway.
2
+ * The MCP server: four tools over the Lobstack API.
3
3
  *
4
4
  * Exported as a factory rather than wired straight to stdio so the tests can
5
5
  * drive it over an in-memory transport with a real MCP client on the other end,
package/dist/server.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The MCP server: four tools over the Lobstack Gateway.
2
+ * The MCP server: four tools over the Lobstack API.
3
3
  *
4
4
  * Exported as a factory rather than wired straight to stdio so the tests can
5
5
  * drive it over an in-memory transport with a real MCP client on the other end,
@@ -48,7 +48,7 @@ export const SERVER_VERSION = (() => {
48
48
  return "0.0.0";
49
49
  }
50
50
  })();
51
- const INSTRUCTIONS = `Lobstack is a metered LLM gateway: one key reaches every major model, and every call
51
+ const INSTRUCTIONS = `The Lobstack API is a metered LLM gateway: one key reaches every major model, and every call
52
52
  comes back with a receipt saying which model served it and what it cost.
53
53
 
54
54
  - lobstack_route_preview needs NO API key. It scores a prompt against the same
@@ -56,7 +56,7 @@ comes back with a receipt saying which model served it and what it cost.
56
56
  estimated cost. Use it to choose a model, or to show what routing does.
57
57
  - lobstack_chat runs the completion. Send model "auto" to let the router pick
58
58
  the cheapest model that can handle the prompt.
59
- - Costs are reported as the gateway priced them. A null cost means the gateway
59
+ - Costs are reported as the API priced them. A null cost means the API
60
60
  could not price the call — it does not mean the call was free.
61
61
  - A saving labelled "saved" is like-for-like: the caller named a model and got
62
62
  something cheaper. A saving labelled "vs ceiling" is measured against the most
@@ -69,23 +69,23 @@ export function createServer(options = {}) {
69
69
  title: "Preview routing and cost",
70
70
  description: "Score a prompt and report which model the Lobstack router would serve it with, and what that would cost. " +
71
71
  "Runs no inference, spends nothing, and NEEDS NO API KEY — use it to pick a model before calling lobstack_chat, " +
72
- "or to show what the gateway does on a machine with no key configured. Token counts are estimates; the billed " +
72
+ "or to show what the Lobstack API does on a machine with no key configured. Token counts are estimates; the billed " +
73
73
  "figure comes from the provider's usage block on the real call.",
74
74
  inputSchema: routePreviewInput,
75
75
  outputSchema: routePreviewOutput,
76
76
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
77
77
  }, async (args) => runRoutePreview(cfg, args));
78
78
  server.registerTool("lobstack_models", {
79
- title: "List gateway models",
80
- description: "The models the Lobstack Gateway serves, with capability tier, provider, context window and USD price per " +
79
+ title: "List Lobstack API models",
80
+ description: "The models the Lobstack API serves, with capability tier, provider, context window and USD price per " +
81
81
  "million input and output tokens. A model the registry cannot price shows a null price, not zero.",
82
82
  inputSchema: modelsInput,
83
83
  outputSchema: modelsOutput,
84
84
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
85
85
  }, async (args) => runModels(cfg, args));
86
86
  server.registerTool("lobstack_chat", {
87
- title: "Chat through the gateway",
88
- description: "Send a prompt or conversation through the Lobstack Gateway and get the reply plus a receipt: the model that " +
87
+ title: "Chat through the Lobstack API",
88
+ description: "Send a prompt or conversation through the Lobstack API and get the reply plus a receipt: the model that " +
89
89
  'actually served it, token counts, USD cost, and any saving with the reason it may be claimed. Model "auto" ' +
90
90
  "(the default) lets the router pick the cheapest model that can handle the prompt. This call spends money " +
91
91
  "against the configured key's allowance.",
@@ -95,7 +95,7 @@ export function createServer(options = {}) {
95
95
  }, async (args) => runChat(cfg, args));
96
96
  server.registerTool("lobstack_spend", {
97
97
  title: "Read spend and usage",
98
- description: "What this organization has spent through the gateway over a range, broken down by day, model, key or agent, " +
98
+ description: "What this organization has spent through the Lobstack API over a range, broken down by day, model, key or agent, " +
99
99
  "with request counts, tokens, error counts and latency percentiles. Requires an API key with the usage:read " +
100
100
  "scope. Reports how many requests could not be priced, because a total that includes them is a floor.",
101
101
  inputSchema: spendInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobstack-ai/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The Lobstack API as an MCP server: one key across many model providers, and what each call cost.",
5
5
  "type": "module",
6
6
  "bin": {