runbios-mcp 0.6.3 → 0.6.4-dev.408

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.js CHANGED
@@ -24,6 +24,7 @@ const RAW_FAILURE_TEXT_FIELDS = [
24
24
  ];
25
25
  import { LOOP_TOOL_PREFIX, loopToolOffered, resolveLaunchGates, withoutGatedLoopIntrospection, } from "./config.js";
26
26
  import { VERSION } from "./version.js";
27
+ import { workspaceGuidance } from "./workspace-guidance.js";
27
28
  export { VERSION };
28
29
  /**
29
30
  * Wrap a tool handler so hooks.onToolCall observes the tool name, success
@@ -740,7 +741,7 @@ export function createBiosMcpServer(client, hooks, deploymentCaps,
740
741
  // Defaults read the environment so a deployment with nothing set fails CLOSED
741
742
  // (gated) while pre-launch; tests that exercise creation pass
742
743
  // { training: false, datasets: false }.
743
- launchGates = resolveLaunchGates(), allowedTools) {
744
+ launchGates = resolveLaunchGates(), allowedTools, consoleUpload = false) {
744
745
  // `instructions` reaches the client at initialize, BEFORE any tool description
745
746
  // is read, which is the only place to state the rules a tool schema cannot: an
746
747
  // agent that learns the derived-settings and catalog rules up front never
@@ -758,8 +759,8 @@ launchGates = resolveLaunchGates(), allowedTools) {
758
759
  + "no creation tools for them are offered, so do not attempt to start one or look for a workaround. "
759
760
  + "Existing jobs and datasets stay readable.\n"
760
761
  : "";
761
- const instructions = allowedTools
762
- ? "Run BiOS exposes only the tools authorized for this credential, organization, workspace, environment, and release cohort. tools/list is the complete available surface for this session; never claim or attempt a tool that is absent. Call introspect_api_key to confirm identity and scopes. Never invent a resource ID, report an operation complete before its tool result confirms it, or create a paid/destructive resource without explicit user approval."
762
+ const sessionRules = allowedTools
763
+ ? "Run BiOS exposes only the tools authorized for this credential, organization, workspace, environment, and release cohort. tools/list is the complete available surface for this session; never claim or attempt a tool that is absent. Never invent a resource ID, report an operation complete before its tool result confirms it, or create a paid/destructive resource without explicit user approval."
763
764
  : (launchGates.training
764
765
  ? "Run BiOS serves models through TWO distinct inference products: serverless inference and dedicated deployments. Call get_platform_guide first and choose the product before calling anything.\n"
765
766
  : "Run BiOS provides serverless inference, dedicated deployments, datasets, and training. Call get_platform_guide first and choose the workflow before calling anything.\n")
@@ -777,13 +778,9 @@ launchGates = resolveLaunchGates(), allowedTools) {
777
778
  + `${CONTEXT_UNKNOWN_FALLBACK} when unknown. Read model.native_max_context from preflight_inference.\n`
778
779
  + "7. GPUs and money: never substitute a GPU, create a paid resource, or exceed a price cap without explicit user approval. A 503 is transient, never proof of no capacity.\n"
779
780
  + "8. Report a dedicated endpoint as live only when get_inference_status says running; call only the verb its model serves, never guess an unsupported mode. Serverless needs no such poll.";
780
- const mcp = new McpServer({
781
- name: "Run BiOS",
782
- version: VERSION,
783
- }, { instructions });
784
- // The registrations below are moved verbatim from the original single-file
785
- // entry and intentionally keep their original indentation. `server.tool(...)`
786
- // is a thin delegate that adds the onToolCall hook around each handler.
781
+ // The initialize response must describe the same surface tools/list will return.
782
+ // Collect typed registrations once, after the same grants and rollout gates.
783
+ const registrations = [];
787
784
  const registeredTools = new Set();
788
785
  // MODEL_CATALOG_PATH is the ONE model-discovery endpoint the platform serves:
789
786
  // GET /api/public/model-catalog (model-service/cmd/main.go registers it, with
@@ -860,9 +857,9 @@ launchGates = resolveLaunchGates(), allowedTools) {
860
857
  validation_rows: z.number().int().min(0).max(50_000_000).optional()
861
858
  .describe("Validation rows held out and never trained on (0 turns validation off). Allowed: 100 (or 5% when that is fewer) up to 40% of the training rows; unset, 5% capped at 1,000. Preflight returns the exact range. Do not send with eval_split_ratio."),
862
859
  precision: z.enum(["bf16", "fp8"]).optional()
863
- .describe("Training precision. Offer only what get_managed_training_options lists for the model and adapter; bf16 is the default."),
860
+ .describe("Training precision for this model and adapter. bf16 is the default. Use an option supported by the selected training configuration."),
864
861
  optim: z.enum(["adamw_torch_fused", "adamw_8bit"]).optional()
865
- .describe("Optimizer state: adamw_torch_fused (16-bit, default, most accurate) or adamw_8bit (less memory). Offer only what get_managed_training_options lists."),
862
+ .describe("Optimizer state for the selected training configuration. adamw_torch_fused is the 16-bit default. adamw_8bit uses less memory."),
866
863
  eval_steps: z.number().int().positive().optional().describe("Evaluate every N optimizer steps when a validation split exists."),
867
864
  save_steps: z.number().int().positive().optional().describe("Checkpoint interval in optimizer steps."),
868
865
  early_stopping_patience: z.number().int().min(0).max(20).optional()
@@ -952,16 +949,18 @@ END TO END: create ONE pipeline per use case; send the app's conversations with
952
949
  if (name === "loop_update_pipeline")
953
950
  paramsSchema = loopSwitchedOffUpdateShape();
954
951
  }
955
- mcp.tool(name, description, paramsSchema, wrapToolHandler(name, cb, hooks?.onToolCall));
952
+ registrations.push((mcp) => mcp.tool(name, description, paramsSchema, wrapToolHandler(name, cb, hooks?.onToolCall)));
956
953
  registeredTools.add(name);
957
954
  },
958
955
  };
959
956
  /* ══════════════════════════════════════════════════════════════════════════ */
960
957
  /* TOOL: get_platform_guide */
961
958
  /* ══════════════════════════════════════════════════════════════════════════ */
962
- server.tool("get_platform_guide", launchGates.training || launchGates.datasets
963
- ? "Get a comprehensive guide to the Run BiOS platform. Call this FIRST to understand the available capabilities, the correct workflow order, supported models, GPU tiers, and best practices for serving models."
964
- : "Read workflow instructions for planning training, preparing datasets and serving a model on Run BiOS. Use the guide when the user needs to understand a workflow or its prerequisites. Use the relevant list, status or preflight tool for current workspace resources, progress or cost estimates. Reading the guide starts no job.", {
959
+ server.tool("get_platform_guide", allowedTools
960
+ ? "Read this connection’s workspace-specific workflow guide. Use it for supported operations and prerequisites. Use inventory and status tools for current resources or progress."
961
+ : launchGates.training || launchGates.datasets
962
+ ? "Get a comprehensive guide to the Run BiOS platform. Call this FIRST to understand the available capabilities, the correct workflow order, supported models, GPU tiers, and best practices for serving models."
963
+ : "Read workflow instructions for planning training, preparing datasets and serving a model on Run BiOS. Use the guide when the user needs to understand a workflow or its prerequisites. Use the relevant list, status or preflight tool for current workspace resources, progress or cost estimates. Reading the guide starts no job.", {
965
964
  topic: z
966
965
  .enum([
967
966
  "overview",
@@ -996,15 +995,21 @@ END TO END: create ONE pipeline per use case; send the app's conversations with
996
995
  const liveToolCount = registeredTools.size;
997
996
  if (allowedTools) {
998
997
  const names = [...registeredTools].sort();
998
+ const loopNames = names.filter(name => name.startsWith(LOOP_TOOL_PREFIX));
999
+ const loopTitle = launchGates.loopSwitchedOff ? "Conscious Loop: switched off" : "Conscious Loop MCP Tools";
1000
+ const loopInventory = loopNames.length ? "\n\n## " + loopTitle + "\n"
1001
+ + loopNames.map(name => "- " + name).join("\n") : "";
999
1002
  return result(`# Run BiOS — authorized session guide
1000
1003
 
1001
1004
  This session has ${names.length} MCP tools. The list below is complete for the current credential, organization, workspace, environment, and release cohort. A tool that is absent is unavailable; do not claim it, search for a workaround, or infer access from another account.
1002
1005
 
1006
+ ${workspaceGuidance(registeredTools, consoleUpload)}
1007
+
1003
1008
  ${topic ? `Requested topic: ${topic}. Use only the matching tools below and their schemas as the authority.\n\n` : ""}## Available tools
1004
- ${names.map((name) => `- ${name}`).join("\n")}
1009
+ ${names.filter(name => !name.startsWith(LOOP_TOOL_PREFIX)).map(name => "- " + name).join("\n")}${loopInventory}
1005
1010
 
1006
1011
  ## Rules
1007
- - Call introspect_api_key before account-scoped work and use only returned resource IDs.
1012
+ - Use only returned resource IDs.
1008
1013
  - Read status/preflight results before lifecycle or paid actions.
1009
1014
  - Never choose a GPU, price cap, queue, mutation, or destructive action without explicit user approval.
1010
1015
  - A submitted tool call is not success; report success only from its returned result.
@@ -1076,7 +1081,7 @@ get_inference_status instead of asserting them.
1076
1081
  2. introspect_api_key - Discover your API key's permissions, scopes, and bound workspace
1077
1082
  3. get_wallet_balance - Check your credits before creating a deployment
1078
1083
  4. search_models / list_models - Find a model from the hosted catalog
1079
- 5. get_model_config - Recommended settings for a chosen model
1084
+ 5. get_model_config - Read published architecture, parameter counts and context length
1080
1085
  6. list_supported_architectures - Which architectures can be served
1081
1086
  7. get_managed_training_options - the context lengths, precisions and optimizer states each model and adapter offers (the platform provides the training resources; never offer GPUs to the customer)
1082
1087
  8. list_integrations / search_huggingface_datasets / preview_huggingface_dataset - Discover Hub sources and inspect subsets/splits
@@ -1175,7 +1180,7 @@ get_inference_status instead of asserting them.
1175
1180
  2. introspect_api_key - Discover your API key's permissions, scopes, and bound workspace
1176
1181
  3. get_wallet_balance - Check if you have enough credits before training
1177
1182
  4. search_models / list_models - Find the right base model from the hosted catalog
1178
- 5. get_model_config - Get recommended settings for your chosen model
1183
+ 5. get_model_config - Read published architecture, parameter counts and context length
1179
1184
  6. list_supported_architectures - Check which architectures can be trained or served
1180
1185
  7. get_training_capabilities - Read the authoritative training contract; call this before building automated payloads
1181
1186
  7a. get_managed_training_options - With managed_training on: the context lengths, precisions and optimizer states a model can be trained with; offer only these
@@ -1260,9 +1265,9 @@ If a started job loses its training resources it rests at 'interrupted' (nothing
1260
1265
  - Use early stopping if loss increases for several steps`,
1261
1266
  models: `# Model Catalog
1262
1267
 
1263
- Run BiOS serves a curated catalog of models hosted in its own storage — every
1264
- listed model is supported for training and serving, and these are
1265
- the ONLY models that can be trained or deployed. The catalog is the source of
1268
+ Run BiOS serves a curated catalog of hosted base models. Each entry carries
1269
+ trainSupported and deploySupported. Validate the proposed configuration with
1270
+ the corresponding preflight before creating a job or deployment. The catalog is the source of
1266
1271
  truth: call list_models for everything currently hosted, or search_models to
1267
1272
  filter by name, provider, or size. A model that is not in the catalog is not
1268
1273
  hosted yet — ask an admin to mirror it.
@@ -1291,7 +1296,7 @@ language models — but the live catalog always wins over any list.
1291
1296
  - For maximum quality: a 70B-class model (requires multi-GPU)
1292
1297
 
1293
1298
  Use search_models to find hosted models by name or provider.
1294
- Use get_model_config to see what training methods work with a specific model.`,
1299
+ Read published architecture and size with get_model_config. For training methods and defaults, read get_training_capabilities. Check the model and adapter with get_managed_training_options when managed training is enabled, then validate the proposed job with preflight_training_job.`,
1295
1300
  datasets: `# Dataset Format Guide
1296
1301
 
1297
1302
  ## One file type, one shape per training method
@@ -1617,7 +1622,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1617
1622
  const data = await client.api("/api/api-keys/introspect");
1618
1623
  // Where the loop is gated, IAM's loop tools and descriptions are removed:
1619
1624
  // the answer must not advertise what tools/list hides (src/config.ts).
1620
- return json(withoutGatedLoopIntrospection(data, launchGates));
1625
+ return json(withoutGatedLoopIntrospection(data, launchGates, allowedTools && registeredTools));
1621
1626
  });
1622
1627
  /* ══════════════════════════════════════════════════════════════════════════ */
1623
1628
  /* TOOL: get_wallet_balance */
@@ -1629,9 +1634,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1629
1634
  /* ══════════════════════════════════════════════════════════════════════════ */
1630
1635
  /* TOOL: search_models */
1631
1636
  /* ══════════════════════════════════════════════════════════════════════════ */
1632
- server.tool("search_models", launchGates.training
1633
- ? "Search the Run BiOS model catalog — the platform's own hosted models. These are the ONLY models that can be deployed on Run BiOS; a model that is not listed is not hosted yet (ask an admin to mirror it). Filter by name, provider, or parameter count. Returns model id, author, parameter counts, architecture, and downloads/likes for each result."
1634
- : "Search the Run BiOS model catalog — the platform's own hosted models. These are the ONLY models that can be fine-tuned or deployed on Run BiOS; a model that is not listed is not hosted yet (ask an admin to mirror it). Filter by name, provider, or parameter count. Returns model id, author, parameter counts, architecture, and downloads/likes for each result.", {
1637
+ server.tool("search_models", "Find hosted base models in the Run BiOS catalog by name, provider or maximum parameter count. Returns the first page of matches, their IDs, architecture, parameter counts and total matches."
1638
+ + (launchGates.training
1639
+ ? " Check deploySupported before planning a dedicated deployment."
1640
+ : " Check trainSupported or deploySupported before planning training or a dedicated deployment."), {
1635
1641
  query: z.string().optional().describe("Search by model name (e.g., 'llama', 'mistral', 'phi', 'qwen')"),
1636
1642
  provider: z.string().optional().describe("Filter by provider/author (e.g., 'meta-llama', 'mistralai', 'microsoft', 'Qwen')"),
1637
1643
  max_params: z.string().optional().describe("Maximum parameter count (e.g., '7B', '13B', '70B')"),
@@ -1648,9 +1654,11 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1648
1654
  /* ══════════════════════════════════════════════════════════════════════════ */
1649
1655
  /* TOOL: list_models */
1650
1656
  /* ══════════════════════════════════════════════════════════════════════════ */
1651
- server.tool("list_models", launchGates.training
1652
- ? "List every model hosted on Run BiOS — the platform's own registry, mirrored in Run BiOS storage (never a live Hugging Face listing). These are the only models that can be deployed. Call this before create_inference to pick a valid model id; use search_models to filter the same catalog by text."
1653
- : "List every model hosted on Run BiOS — the platform's own registry, mirrored in Run BiOS storage (never a live Hugging Face listing). These are the only models that can be fine-tuned or deployed. Call this before create_training_job or create_inference to pick a valid model id; use search_models to filter the same catalog by text.", {
1657
+ server.tool("list_models", "List one page of hosted base models in the Run BiOS catalog. Rows include model ID, architecture and parameter counts."
1658
+ + (launchGates.training
1659
+ ? " Check deploySupported when choosing a base for a dedicated deployment."
1660
+ : " Check trainSupported or deploySupported when choosing a base for training or a dedicated deployment.")
1661
+ + " Pass next_offset as offset to read the next page.", {
1654
1662
  type: z.enum(["all", "llm", "vlm"]).optional().describe("Filter by model surface (default: all)."),
1655
1663
  sort: z.enum(["downloads", "likes", "trending", "name"]).optional().describe("Sort order (default: downloads)."),
1656
1664
  limit: z.number().int().min(1).max(60).optional().describe("Page size (default 24, max 60)."),
@@ -1756,19 +1764,20 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1756
1764
  /* ══════════════════════════════════════════════════════════════════════════ */
1757
1765
  /* TOOL: get_model_config */
1758
1766
  /* ══════════════════════════════════════════════════════════════════════════ */
1759
- server.tool("get_model_config", launchGates.training
1760
- ? "Get configuration recommendations for a specific model hosted on Run BiOS (see list_models). Returns supported training methods and default hyperparameters."
1761
- : "Get training configuration recommendations for a specific model hosted on Run BiOS (see list_models). Returns supported training methods and default hyperparameters. Use this after search_models to plan your training job.", {
1767
+ server.tool("get_model_config", "Read the published architecture and size of one hosted model by catalog ID. Returns modelId, model_type, architectures, totalParams and activeParams in billions, isMoE, maxContext in tokens, and resolved. Withheld counts return resolved=false and null values. maxContext can be null even for a resolved model."
1768
+ + (!allowedTools || allowedTools.has("get_training_capabilities")
1769
+ ? " Use get_training_capabilities for enabled training methods and hyperparameter defaults."
1770
+ : ""), {
1762
1771
  model: z.string().describe("Full model id from the Run BiOS catalog (e.g., 'meta-llama/Llama-3.1-8B-Instruct')"),
1763
1772
  model_revision: z
1764
1773
  .string()
1765
1774
  .max(256)
1766
1775
  .optional()
1767
- .describe("Model branch, tag, or commit. The response returns the exact immutable commit used for sizing."),
1776
+ .describe("Optional compatibility input, ignored. This lookup reads the current catalog record by model ID."),
1768
1777
  integration_id: z
1769
1778
  .string()
1770
1779
  .optional()
1771
- .describe("Legacy no-op for catalog models — hosted models are never gated. Integrations are used for Hugging Face dataset imports."),
1780
+ .describe("Optional compatibility input, ignored. This catalog lookup uses no external integration."),
1772
1781
  }, async ({ model }) => {
1773
1782
  const data = await client.api("/api/public/model-config", { params: { id: model } });
1774
1783
  return json(data);
@@ -1802,7 +1811,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1802
1811
  /* ══════════════════════════════════════════════════════════════════════════ */
1803
1812
  /* TOOL: get_gpu_pricing */
1804
1813
  /* ══════════════════════════════════════════════════════════════════════════ */
1805
- server.tool("get_gpu_pricing", "Get current GPU pricing and availability. Returns all available GPU types with display name, VRAM in GB, per-second cost, availability status, and supported model sizes. No authentication required.", {}, async () => {
1814
+ server.tool("get_gpu_pricing", "Read GPU types, VRAM, stock and hourly prices. Each gpus entry includes gpu_type, vram_gb, available, available_count and price_per_hour_cents in US cents per GPU-hour. Check stale and last_updated before quoting availability or a price.", {}, async () => {
1806
1815
  const data = await client.api("/api/public/gpu-pricing");
1807
1816
  return json(data);
1808
1817
  });
@@ -2264,7 +2273,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2264
2273
  // server-side (403 DATASETS_COMING_SOON) as the authority. At launch the flag
2265
2274
  // opens and the registration returns verbatim.
2266
2275
  if (!launchGates.datasets) {
2267
- server.tool("upload_dataset", "Upload one JSONL dataset (maximum 500MB). SFT supports messages, conversations, instruction/output, prompt/completion, query/response, input/output, question/answer, and problem/solution rows. CPT requires text rows. Preference, reward, KTO, GRPO, PPO, and GKD data is refused while those methods are unavailable. The server validates rows before the dataset becomes Ready.", {
2276
+ server.tool("upload_dataset", "Create a workspace dataset from one local .jsonl file (maximum 500MB) on the computer running this MCP server. Return the dataset ID and check processing with get_dataset_status before training. SFT supports messages, conversations, instruction/output, prompt/completion, query/response, input/output, question/answer, and problem/solution rows. CPT requires text rows. Preference, reward, KTO, GRPO, PPO, and GKD data is refused while those methods are unavailable. The server validates rows before the dataset becomes Ready.", {
2268
2277
  file_path: z.string().describe("Absolute path to the dataset file on disk"),
2269
2278
  name: z.string().optional().describe("Display name for the dataset (defaults to filename)"),
2270
2279
  }, async ({ file_path, name }) => {
@@ -2314,7 +2323,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2314
2323
  /* ══════════════════════════════════════════════════════════════════════════ */
2315
2324
  /* TOOL: preview_dataset */
2316
2325
  /* ══════════════════════════════════════════════════════════════════════════ */
2317
- server.tool("preview_dataset", "Preview the first rows of a dataset to inspect its structure, column names, and content before training. Useful for verifying the dataset format is correct.", {
2326
+ server.tool("preview_dataset", "Read one page of dataset rows to inspect columns, content and training format. The first page is the default. Pass next_page as page to continue.", {
2318
2327
  dataset_id: z.string().describe("Dataset ID (e.g., 'ds_abc123')"),
2319
2328
  rows: z.number().int().min(1).max(50).optional().describe("Rows per page (default: 10, max: 50)"),
2320
2329
  page: z.number().int().min(1).optional().describe("1-based page of rows. Read later pages with next_page; never claim a page is the whole dataset."),
@@ -2452,7 +2461,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2452
2461
  /* ══════════════════════════════════════════════════════════════════════════ */
2453
2462
  /* TOOL: get_training_capabilities */
2454
2463
  /* ══════════════════════════════════════════════════════════════════════════ */
2455
- server.tool("get_training_capabilities", "Return the authoritative training contract Run BiOS enforces today: enabled and disabled methods, algorithms and adapters; exact hyperparameter names, aliases, types, defaults, enums and ranges; dependencies and incompatibilities. contract_version/schema_version identify the contract you are reading. Call this before constructing an automated training payload instead of relying on a hard-coded client list. What a given model can be trained with is per model: inspect get_recommended_gpu.model_support.available_methods, then preflight_training_job, before offering or creating any method and adapter combination.", {}, async () => {
2464
+ server.tool("get_training_capabilities", "Return the authoritative training contract Run BiOS enforces today: enabled and disabled methods, algorithms and adapters; exact hyperparameter names, aliases, types, defaults, enums and ranges; dependencies and incompatibilities. contract_version/schema_version identify the contract you are reading. Call this before constructing an automated training payload instead of relying on a hard-coded client list."
2465
+ + (!allowedTools || allowedTools.has("get_managed_training_options") ? " With managed training, use get_managed_training_options to check a model, method and adapter." : "")
2466
+ + (!allowedTools || allowedTools.has("get_recommended_gpu") ? " With customer-selected hardware, inspect get_recommended_gpu.model_support.available_methods for that model." : "")
2467
+ + (!launchGates.training && (!allowedTools || allowedTools.has("preflight_training_job")) ? " Validate the proposed settings with preflight_training_job." : ""), {}, async () => {
2456
2468
  const data = await client.api("/api/training/capabilities");
2457
2469
  // The contract used to carry image_compatibility — the training-engine image
2458
2470
  // VERSION range it was written against. training-service no longer emits it;
@@ -2584,7 +2596,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2584
2596
  /* ══════════════════════════════════════════════════════════════════════════ */
2585
2597
  /* TOOL: list_training_jobs */
2586
2598
  /* ══════════════════════════════════════════════════════════════════════════ */
2587
- server.tool("list_training_jobs", "List training jobs with their status, progress percentage, base model, training method, GPU type, cost so far, and timestamps. The default list holds running, in-progress and completed jobs only: stopped runs (ended because someone asked; each carries stop_origin 'user' or 'platform') are returned only with status='stopped', and failed runs (ended by an error) only with status='failed'. The two are different facts and never share a filter.", {
2599
+ server.tool("list_training_jobs", "Read one page of training jobs with their status, progress, base model, method, GPU type, cost so far and timestamps. Pass next_offset as offset to continue. The default list holds running, in-progress and completed jobs only: stopped runs (ended because someone asked; each carries stop_origin 'user' or 'platform') are returned only with status='stopped', and failed runs (ended by an error) only with status='failed'. The two are different facts and never share a filter.", {
2588
2600
  status: z
2589
2601
  .enum(["running", "completed", "stopped", "queued", "securing", "booked", "interrupted", "failed"])
2590
2602
  .optional()
@@ -3617,6 +3629,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
3617
3629
  })));
3618
3630
  server.tool("list_inference_aliases", "Every re-pointable handle in this workspace: what each one points at now, what it pointed at before, and whether it has taken over a deployment's own name. Read this before proposing a name — it is the only way to see that a handle a customer is already calling is about to be moved.", {}, async () => json(await client.api("/api/inference/aliases")));
3619
3631
  server.tool("delete_inference_alias", "Remove a re-pointable handle. Traffic that was arriving on that name STOPS REACHING THE DEPLOYMENT IT POINTED AT — the name goes back to whatever row owns it, which is usually nothing. Confirm with the user before calling it, and say which deployment stops being reachable by that name.", { name: z.string().describe("The handle, from list_inference_aliases") }, async ({ name }) => json(await client.api(`/api/inference/aliases/${encodeURIComponent(name)}`, { method: "DELETE" })));
3632
+ const instructions = workspaceGuidance(registeredTools, consoleUpload) + "\n" + sessionRules;
3633
+ const mcp = new McpServer({ name: "Run BiOS", version: VERSION }, { instructions });
3634
+ for (const register of registrations)
3635
+ register(mcp);
3620
3636
  return mcp;
3621
3637
  }
3622
3638
  //# sourceMappingURL=server.js.map