### Install Dependencies and Start Dev Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/CONTRIBUTING.md Install project dependencies and start the development server from the repository root. Requires Bun 1.3+. ```bash bun install bun dev ``` -------------------------------- ### Install Dependencies and Start Services Source: https://github.com/sure-scale/doc-haus/blob/dochaus/CONTRIBUTING.md Installs project dependencies using Bun and starts the engine, ingest service, and web application. Ensure Bun is installed before running. ```bash bun install ./start.sh ``` -------------------------------- ### Install and Run Doc Haus with Bun Source: https://github.com/sure-scale/doc-haus/blob/dochaus/README.md Clone the repository, navigate into the directory, and run the start script with the --demo flag. This will open the application in your browser with a demo matter pre-loaded. Ensure you have Bun installed. ```bash git clone https://github.com/sure-scale/doc-haus.git && cd doc-haus ./start.sh --demo ``` -------------------------------- ### Install and Run Doc Haus with Docker Source: https://github.com/sure-scale/doc-haus/blob/dochaus/README.md Clone the repository, navigate into the directory, and use Docker Compose to start the application. This method does not require a Bun installation. Access the application via http://localhost:5173. ```bash git clone https://github.com/sure-scale/doc-haus.git && cd doc-haus docker compose up ``` -------------------------------- ### Ollama Setup Commands Source: https://github.com/sure-scale/doc-haus/blob/dochaus/docs/providers.md Commands to start the Ollama server and pull a model that supports tool calls. ```bash ollama serve # if not already running ollama pull llama3.2 # pull a model that supports tool calls ``` -------------------------------- ### OpenAPI Configuration Examples Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/essentials/settings.mdx Examples demonstrating how to configure the 'openapi' property with a single URL, a relative path, or multiple paths. ```json "openapi": "https://example.com/openapi.json" ``` ```json "openapi": "/openapi.json" ``` ```json "openapi": ["https://example.com/openapi1.json", "/openapi2.json", "/openapi3.json"] ``` -------------------------------- ### Request-Context Call Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/api.html Example of a GET request to the file system tree endpoint, utilizing request context with path, directory, and workspace parameters. ```http GET /api/fs/tree?path=.&directory=/repo/app&workspace=ws_123 ``` -------------------------------- ### Install Dependencies with Bun Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/README.md Use this command to install all project dependencies listed in package.json. ```bash bun install ``` -------------------------------- ### Install SDK Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/sdk.mdx Install the opencode SDK using npm. This command adds the necessary package to your project dependencies. ```bash npm install @opencode-ai/sdk ``` -------------------------------- ### Install Dependencies Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/app/README.md Install project dependencies using npm, pnpm, or yarn. ```bash npm install # or pnpm install or yarn install ``` -------------------------------- ### Install OpenCode Plugin Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Installs a plugin and updates the OpenCode configuration. Supports global installation and forcing replacement of existing versions. ```bash opencode plugin ``` ```bash opencode plug ``` -------------------------------- ### Install OpenCode with Curl Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Use this command to download and execute the OpenCode installation script directly from the official source. ```bash curl -fsSL https://opencode.ai/install | bash ``` -------------------------------- ### Install opencode GitHub Action Source: https://github.com/sure-scale/doc-haus/blob/dochaus/github/README.md Run this command in your GitHub repo's terminal to install the GitHub app, create the workflow, and set up secrets. ```bash opencode github install ``` -------------------------------- ### Turn Object Initialization Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/specs/v2/message-shape.md Example of initializing a turn object with request details. ```typescript const turn = { request: { agent: "build", model: { providerID: "openai", modelID: "gpt-5" }, }, } ``` -------------------------------- ### Start Headless OpenCode Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Start a headless OpenCode server for API access. The server listens on a specified port and hostname. ```bash opencode serve ``` -------------------------------- ### Basic Model Selection Examples Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/llm/example/call-sites.md Demonstrates how to select specific models for different LLM tasks using provider facades. These examples show direct model selection for responses, chat, and WebSocket streams. ```typescript OpenAI.responses("gpt-4o") OpenAI.chat("gpt-4o") OpenAI.responsesWebSocket("gpt-4o") ``` -------------------------------- ### Install OpenCode with Bun Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Install the OpenCode package globally using Bun. This method is suitable for users who prefer the Bun runtime. ```bash bun install -g opencode-ai ``` -------------------------------- ### Start Headless OpenCode Web Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Starts an OpenCode server with a web interface. Supports custom ports, hostnames, mDNS, and CORS settings. ```bash opencode web ``` -------------------------------- ### Start OpenCode Backend for Web Access Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Starts the OpenCode backend server, making it accessible via web or mobile interfaces on a specified port and hostname. ```bash opencode web --port 4096 --hostname 0.0.0.0 ``` -------------------------------- ### Example Grep by Vercel Prompt Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/mcp-servers.mdx Use this prompt format to utilize the Grep by Vercel MCP server for searching code examples on GitHub. ```txt What's the right way to set a custom domain in an SST Astro component? use the gh_grep tool ``` -------------------------------- ### Install Mintlify CLI Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/README.md Install the Mintlify CLI globally using npm. This tool is required for local development and previewing documentation changes. ```bash npm i -g mint ``` -------------------------------- ### Start OpenCode Server in WSL for Desktop App Connection Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/windows-wsl.mdx Start the OpenCode server in WSL, binding it to all network interfaces (0.0.0.0) on a specific port. This allows the OpenCode Desktop app on Windows to connect to the WSL server. ```bash opencode serve --hostname 0.0.0.0 --port 4096 ``` -------------------------------- ### TUI Configuration Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/tui.mdx This JSON snippet shows a comprehensive example of tui.json configuration, covering theme, keybinds, scrolling, attention settings, and more. It demonstrates how to structure the configuration for various TUI behaviors. ```json { "$schema": "https://opencode.ai/tui.json", "theme": "opencode", "leader_timeout": 2000, "keybinds": { "leader": "ctrl+x", "command_list": "ctrl+p" }, "scroll_speed": 3, "scroll_acceleration": { "enabled": false }, "diff_style": "auto", "mouse": true, "attention": { "enabled": true, "notifications": true, "sound": true, "volume": 0.4, "sound_pack": "opencode.default", "sounds": { "error": "./sounds/error.mp3" } } } ``` -------------------------------- ### Scheduled OpenCode Task Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/github.mdx This example demonstrates how to configure a scheduled workflow to run OpenCode. The prompt input is required for scheduled events, and specific permissions must be granted for actions like creating branches or PRs. ```yaml name: Scheduled OpenCode Task on: schedule: - cron: "0 9 * * 1" # Every Monday at 9am UTC jobs: opencode: runs-on: ubuntu-latest permissions: id-token: write contents: write pull-requests: write issues: write steps: - name: Checkout repository uses: actions/checkout@v6 with: persist-credentials: false - name: Run OpenCode uses: anomalyco/opencode/github@latest env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} with: model: anthropic/claude-sonnet-4-20250514 prompt: | Review the codebase for any TODO comments and create a summary. If you find issues worth addressing, open an issue to track them. ``` -------------------------------- ### Use mcp_everything Tool Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/mcp-servers.mdx Example prompt demonstrating how to invoke the 'mcp_everything' tool for a specific task. ```txt use the mcp_everything tool to add the number 3 and 4 ``` -------------------------------- ### Prompt for Codebase Summary Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/tui.mdx Example of a text prompt to get a summary of the codebase within the TUI. ```text Give me a quick summary of the codebase. ``` -------------------------------- ### Initialize OpenCode for Project Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Run the /init command to analyze your project and create an AGENTS.md file. ```bash /init ``` -------------------------------- ### Add MCP Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Adds an MCP server to your configuration, guiding through local or remote server setup. ```bash opencode mcp add ``` -------------------------------- ### Start Local Development Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/README.md Run the Mintlify development server from your documentation's root directory. This command requires a `docs.json` file to be present. ```bash mint dev ``` -------------------------------- ### Starting a Server in Background Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/src/session/prompt/gemini.txt Demonstrates using a tool to execute a command in the background. ```text user: start the server implemented in server.js model: [tool_call: bash for 'node server.js &' because it must run in the background] ``` -------------------------------- ### Mintlify Request Example Component Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/ai-tools/cursor.mdx Demonstrates the Mintlify RequestExample component for showing outgoing requests. ```bash curl -X POST 'https://api.example.com/users' \ -H 'Content-Type: application/json' \ -d '{"name": "John Doe", "email": "john@example.com"}' ``` -------------------------------- ### Deny Providers with Wildcard Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/policies.mdx Use wildcard matching in the resource field to deny a group of providers. This example denies all providers whose IDs start with 'company-'. ```json { "$schema": "https://opencode.ai/config.json", "experimental": { "policies": [ { "effect": "deny", "action": "provider.use", "resource": "company-*" } ] } } ``` -------------------------------- ### Example Policy Configuration Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/provider-policy.md This configuration demonstrates how to set up provider policies. It denies all provider usage by default and then explicitly allows the 'company-ai' provider. ```jsonc { "providers": { "company-ai": { "endpoint": { "type": "openai/responses", "url": "https://ai.company.example/v1/responses" } } }, "experimental": { "policies": [ { "effect": "deny", "action": "provider.use", "resource": "*" }, { "effect": "allow", "action": "provider.use", "resource": "company-ai" } ] } } ``` -------------------------------- ### Enable LSP with Custom Configuration Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/lsp.mdx Use an empty object for 'lsp' to keep built-in servers enabled while allowing for overrides or custom server configurations. This is a starting point for more advanced setups. ```json { "$schema": "https://opencode.ai/config.json", "lsp": {} } ``` -------------------------------- ### Create a New SolidStart Project Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/console/app/README.md Use the Solid CLI to initialize a new SolidStart project. You can create a project in the current directory or specify a directory name. ```bash # create a new project in the current directory npm init solid@latest # create a new project in my-app npm init solid@latest my-app ``` -------------------------------- ### Disable all MCPs matching a glob pattern globally Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/mcp-servers.mdx This example demonstrates disabling all MCP servers whose names start with 'my-mcp' globally using a glob pattern. This is useful for managing multiple MCPs efficiently. ```json { "$schema": "https://opencode.ai/config.json", "mcp": { "my-mcp-foo": { "type": "local", "command": ["bun", "x", "my-mcp-command-foo"] }, "my-mcp-bar": { "type": "local", "command": ["bun", "x", "my-mcp-command-bar"] } }, "tools": { "my-mcp*": false } } ``` -------------------------------- ### Verify Agents SDK Installation Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/test/fixture/skills/agents-sdk/SKILL.md Check if the 'agents' package is installed in your project. If not, install it using npm. ```bash npm ls agents # Should show agents package ``` ```bash npm install agents ``` -------------------------------- ### Initialize Project Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/project.md Initializes a new project. ```APIDOC ## POST /project/init ### Description Initializes a new project. ### Method POST ### Endpoint /project/init ### Response #### Success Response (200) - **Project**: The newly created Project object. ``` -------------------------------- ### Install Claude Code CLI Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/ai-tools/claude-code.mdx Install the Claude Code CLI tool globally using npm. Ensure you have Node.js and npm installed. ```bash npm install -g @anthropic-ai/claude-code ``` -------------------------------- ### Develop a SolidStart Project Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/console/app/README.md Start the development server for your SolidStart project. You can also open the app in a new browser tab using the --open flag. ```bash npm run dev # or start the server and open the app in a new browser tab npm run dev -- --open ``` -------------------------------- ### Install OpenCode with Scoop on Windows Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Install OpenCode on Windows using the Scoop package manager. Scoop provides a command-line installer for Windows applications. ```powershell scoop install opencode ``` -------------------------------- ### Run Backend Development Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/app/AGENTS.md Starts the backend development server for local UI changes. Ensure you are in the 'packages/opencode' directory. ```bash bun run --conditions=browser ./src/index.ts serve --port 4096 ``` -------------------------------- ### Install Plugin Dependencies Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/plugins.mdx Add a package.json to your config directory to manage external npm packages for your plugins. OpenCode runs `bun install` at startup to install these dependencies. ```json { "dependencies": { "shescape": "^2.1.0" } } ``` -------------------------------- ### Run Project with Bun Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/README.md Execute the main entry point of your project using the Bun runtime. ```bash bun run index.ts ``` -------------------------------- ### Example Context7 Prompt Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/mcp-servers.mdx Use this prompt format to leverage the Context7 MCP server for tasks like configuring Cloudflare Worker scripts. ```txt Configure a Cloudflare Worker script to cache JSON API responses for five minutes. use context7 ``` -------------------------------- ### Config Get Operation Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/api.html HTTP GET request to retrieve the resolved configuration. ```http GET /api/config ``` -------------------------------- ### Run OpenCode from WSL Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/windows-wsl.mdx Navigate to your project directory within the WSL filesystem (e.g., /mnt/c/Users/YourName/project) and execute the 'opencode' command to start using OpenCode. ```bash cd /mnt/c/Users/YourName/project opencode ``` -------------------------------- ### Install Playwright Browsers Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/app/README.md Installs the necessary browser binaries for Playwright E2E testing. ```bash bunx playwright install chromium ``` -------------------------------- ### Initial Catalog Load and Plugin Activation Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/catalog-config-plugin-lifecycle.md Illustrates the process of building an initial catalog from available sources and activating slow plugins in the background. This ensures location readiness is not blocked by plugin installation. ```typescript LocationServiceMap.get(ref) → build location layer → Catalog.layer creates empty catalog state → PluginBoot.layer activates immediately available plugins → ConfigProviderPlugin installs Catalog.transform() → ModelsDevPlugin installs Catalog.transform() → AuthPlugin installs Catalog.transform() → Catalog.layer applies active transforms during boot → apply policy → materialize baseline provider/model catalog → PluginBoot baseline ready → Frontend.fetchCatalog() PluginBoot background fiber → install/update plugin packages concurrently → activate completed plugins → Catalog.transform() → transform(updateCatalog) → Catalog internally rebuilds → Catalog.Event.Updated → Frontend.refetchCatalog() ``` -------------------------------- ### Connect to OpenCode Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Run the /connect command in the TUI to initiate the connection process with OpenCode. ```txt /connect ``` -------------------------------- ### Auth Get Operation Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/api.html HTTP GET request to retrieve details of a specific authentication account. ```http GET /api/auth/:accountID ``` -------------------------------- ### Initialize New Project Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/project.md Initializes a new project within OpenCode. ```HTTP POST /project/init -> Project ``` -------------------------------- ### Message Object with Turn ID Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/specs/v2/message-shape.md Example of creating a message object that includes the turnID. ```typescript const msg = { role: "user", turnID: turn.id, parts: [{ type: "text", text: "Summarize the tool output above and continue." }], } ``` -------------------------------- ### Create Opencode Client Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/sdk.mdx Create a default instance of the opencode client. This starts both a server and a client, allowing immediate interaction. ```javascript import { createOpencode } from "@opencode-ai/sdk" const { client } = await createOpencode() ``` -------------------------------- ### Finding Configuration Files Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/src/session/prompt/gemini.txt Shows how to use a glob pattern to locate all files matching a specific name across the project. ```text user: Where are all the 'app.config' files in this project? I need to check their settings. model: [tool_call: glob for pattern '**/app.config'] (Assuming GlobTool returns a list of paths like ['/path/to/moduleA/app.config', '/path/to/moduleB/app.config']) I found the following 'app.config' files: - /path/to/moduleA/app.config - /path/to/moduleB/app.config To help you check their settings, I can read their contents. Which one would you like to start with, or should I read all of them? ``` -------------------------------- ### Install OpenCode with npm Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Install the OpenCode package globally using npm. This is a common method for Node.js projects. ```bash npm install -g opencode-ai ``` -------------------------------- ### Remote MCP Jira Configuration Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/config.mdx Example of a remote MCP Jira configuration, typically found in .well-known/opencode. ```json { "mcp": { "jira": { "type": "remote", "url": "https://jira.example.com/mcp", "enabled": false } } } ``` -------------------------------- ### Bootstrap or Fire-and-Forget Startup Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/specs/effect/facades.md For initialization that previously used facades, call the service via the existing runtime for that file using `BootstrapRuntime.runPromise(Service.use(...))`. Avoid reintroducing dedicated runtimes for bootstrap. ```typescript void BootstrapRuntime.runPromise(Vcs.Service.use((svc) => svc.init())) ``` -------------------------------- ### Start OpenCode TUI Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/cli.mdx Starts the OpenCode terminal user interface (TUI). You can optionally specify a project to load. ```bash opencode [project] ``` -------------------------------- ### Run Development Server Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/app/README.md Starts the application in development mode, enabling hot reloading. ```bash npm run dev ``` -------------------------------- ### Install OpenCode with pnpm Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Install the OpenCode package globally using pnpm. This is an alternative package manager for Node.js environments. ```bash pnpm install -g opencode-ai ``` -------------------------------- ### Catalog Model Get Operation Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/api.html HTTP GET request to retrieve a specific catalog model by its provider and model ID. ```http GET /api/catalog/model/:providerID/:modelID ``` -------------------------------- ### Keymap Registration Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/opencode/specs/tui-plugins.md Demonstrates how to register a new layer with commands and key bindings that are active only in the 'base' mode. ```APIDOC ## api.keymap.registerLayer (Mode-Aware) ### Description Registers a new keymap layer that can be mode-aware, allowing bindings to be active only in specific UI states. ### Method `api.keymap.registerLayer(layerSpec)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body `layerSpec` (object) - Required - Specification for the keymap layer. - `mode` (string) - Optional - The mode in which this layer should be active. Defaults to global if not specified. - `commands` (array) - Optional - An array of command definitions. - `name` (string) - Required - The unique name of the command. - `title` (string) - Required - The display title for the command in the command palette. - `category` (string) - Required - The category for the command. - `namespace` (string) - Required - The namespace for the command, e.g., 'palette'. - `run` (function) - Required - The function to execute when the command is run. - `bindings` (array) - Optional - An array of key binding definitions. - `key` (string) - Required - The key combination (e.g., 'ctrl+shift+m'). - `cmd` (string|function) - Required - The command name or function to execute. - `desc` (string) - Required - A description of the key binding. ### Request Example ```tsx api.keymap.registerLayer({ mode: "base", commands: [ { name: "demo.open", title: "Demo", category: "Plugin", namespace: "palette", run() { api.route.navigate("demo") }, }, ], bindings: [{ key: "ctrl+shift+m", cmd: "demo.open", desc: "Open demo" }], }) ``` ### Response Returns a disposer function that cleans up the registered layer when called. #### Success Response (200) Disposer function #### Response Example `() => void` ``` -------------------------------- ### Get Current Path Information Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/sdk.mdx Use this snippet to get information about the current path. This call returns a Path object. ```javascript // Get current path information const pathInfo = await client.path.get() ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/web/src/content/docs/index.mdx Change your current directory to the root of the project you want to work on. ```bash cd /path/to/project ``` -------------------------------- ### Example API Event Payload Source: https://github.com/sure-scale/doc-haus/blob/dochaus/specs/v2/api.html An example of a concrete API event, demonstrating the structure with specific values for context and payload. ```JSON { "id": "evt_01", "type": "message.part.delta", "time": 1760000000000, "context": { "directory": "/repo/app", "workspaceID": "ws_123" }, "payload": { "sessionID": "ses_123", "messageID": "msg_456", "partID": "part_789", "field": "text", "delta": "hello" } } ``` -------------------------------- ### Mintlify Single Code Block Example Source: https://github.com/sure-scale/doc-haus/blob/dochaus/packages/docs/ai-tools/cursor.mdx Provides an example of a single code block using Mintlify's component. ```javascript const apiConfig = { baseURL: "https://api.example.com", timeout: 5000, headers: { Authorization: `Bearer ${process.env.API_TOKEN}`, }, } ```