Smithery Logo
MCPsSkillsDocsPricing
Login
NewFlame, an assistant that learns and improves. Available onTelegramSlack
    steveclarke

    bruno-endpoint-creation

    steveclarke/bruno-endpoint-creation
    Coding
    24

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─
    Smithery Logo

    Give agents more agency

    Resources

    DocumentationPrivacy PolicySystem Status

    Company

    PricingAboutBlog

    Connect

    © 2026 Smithery. All rights reserved.

    About

    Create professional Bruno REST API endpoint configurations with proper authentication, environment setup, and documentation...

    SKILL.md

    Bruno Endpoint Creation

    Bruno-specific patterns for creating .bru endpoint files. Assumes familiarity with REST conventions.

    Environment Configuration

    Development (Local.bru):

    vars {
      baseUrl: http://localhost:3001
      linkId:
      apiKey: dev_api_key_change_in_production
    }
    

    Production/Staging — use vars:secret for sensitive data:

    vars {
      baseUrl: https://api.yourdomain.com
      linkId:
    }
    vars:secret [
      apiKey
    ]
    

    Collection-Level Authentication

    Set auth once in collection.bru, then inherit in all endpoints:

    auth {
      mode: bearer
    }
    
    auth:bearer {
      token: {{apiKey}}
    }
    

    Individual endpoints inherit with auth: inherit:

    post {
      url: {{baseUrl}}/api/v1/resources
      body: json
      auth: inherit
    }
    

    Override per-endpoint only when auth differs from the collection.

    Request Structure

    meta {
      name: "Create Resource"
      type: http
      seq: 1
    }
    
    post {
      url: {{baseUrl}}/api/v1/resources
      body: json
      auth: inherit
    }
    
    body:json {
      {
        "resource": {
          "field1": "value1",
          "field2": "value2"
        }
      }
    }
    
    params:path {
      id: {{resourceId}}
    }
    
    params:query {
      page: 1
      limit: 20
      sort: created_at
      order: desc
    }
    

    Scripting API

    Post-response — extract data for subsequent requests:

    script:post-response {
      if (res.status === 201 && res.body && res.body.id) {
        bru.setVar("resourceId", res.body.id);
      }
    }
    

    Pre-request — generate dynamic data:

    script:pre-request {
      const timestamp = Date.now();
      bru.setVar("uniqueEmail", `test-${timestamp}@example.com`);
    }
    

    Key difference:

    • bru.setVar() — runtime variables (temporary, current collection run only)
    • bru.setEnvVar() — environment variables (persists, visible in Environment tab)

    Use bru.setVar() for ephemeral values like extracted IDs from test runs.

    Documentation Block

    docs {
      Create a new resource in the system.
    
      **Required Fields:**
      - field1: Description
      - field2: Description
    
      **Optional Fields:**
      - optional_field: Description
    }
    

    Collection Folder Structure

    Bruno Collection/
    ├── Environments/
    │   ├── Local.bru
    │   ├── Staging.bru
    │   └── Production.bru
    ├── Authentication/
    │   ├── Login.bru
    │   └── Refresh Token.bru
    ├── Resources/
    │   ├── List Resources.bru
    │   ├── Get Resource.bru
    │   ├── Create Resource.bru
    │   ├── Update Resource.bru
    │   └── Delete Resource.bru
    └── Health/
        └── Health Check.bru
    
    Recommended Servers
    StudioMeyer-Crew
    StudioMeyer-Crew
    Ref
    Ref
    Context7
    Context7
    Repository
    steveclarke/dotfiles
    Files