setup-dab
Install and configure Data API Builder (DAB) for production SQL Server MCP access with RBAC
What this skill does
# /microsoft:setup-dab
Install and configure Microsoft Data API Builder (DAB) for production-ready SQL Server MCP integration.
## Overview
Data API Builder (DAB) provides a production-grade MCP server for SQL Server with:
- **RBAC**: Role-based access control for entities
- **Caching**: Automatic result caching
- **Telemetry**: Built-in observability
- **Deterministic queries**: NL2DAB instead of fragile NL2SQL
## Arguments
Parse arguments from `$ARGUMENTS`:
| Flag | Description | Default |
|------|-------------|---------|
| `--init` | Initialize new DAB configuration | false |
| `--add <entity>` | Add entity to configuration | (none) |
| `--verify` | Verify existing setup | false |
## Prerequisites
- .NET 8 SDK or later
- SQL Server database with accessible connection string
- Tables/views to expose as entities
## Workflow
### Step 1: Check DAB Installation
```bash
# Check if DAB is installed globally
dotnet tool list -g | grep -i dataapibuilder
# Check version
dab --version
```
If not installed:
```text
Data API Builder not found.
Installing DAB globally...
dotnet tool install -g microsoft.dataapibuilder --prerelease
Note: Using --prerelease for latest MCP features.
```
Install command:
```bash
dotnet tool install -g microsoft.dataapibuilder --prerelease
```
### Step 2: Initialize Configuration (--init)
If `--init` specified or no dab-config.json exists:
```text
DAB Configuration Wizard
Data API Builder requires entity configuration for security.
Unlike raw SQL access, DAB only exposes pre-approved entities.
Connection String Setup
-----------------------
Enter your SQL Server connection string (will be stored as env var reference):
```
Use AskUserQuestion to get connection string approach:
```text
How do you want to configure the connection string?
Options:
1. Environment variable (Recommended) - Reference $DAB_CONNECTION_STRING
2. Direct entry - Store in dab-config.json (less secure)
```
Initialize with environment variable:
```bash
dab init --database-type mssql --connection-string "@env('DAB_CONNECTION_STRING')" --config dab-config.json
```
### Step 3: Add Entities
Prompt user to add entities:
```text
Entity Configuration
--------------------
DAB requires explicit entity definitions for each table/view you want to expose.
Would you like to:
1. Add an entity now
2. Skip (configure later)
```
If adding entity:
```text
Entity Details
Table/View name (e.g., dbo.Products):
Entity name (e.g., Products):
Permissions:
- anonymous:read (read-only, no auth)
- anonymous:* (full access, no auth)
- authenticated:read (read-only, requires auth)
- authenticated:* (full access, requires auth)
```
Add entity command:
```bash
# Read-only access
dab add Products --source dbo.Products --permissions "anonymous:read"
# Full CRUD access
dab add Products --source dbo.Products --permissions "anonymous:*"
# With specific operations
dab add Products --source dbo.Products --permissions "anonymous:read,create"
```
### Step 4: Verify Configuration (--verify)
If `--verify` specified:
```bash
# Check config file
cat dab-config.json
# Validate configuration
dab validate --config dab-config.json
# Check environment variable
echo $DAB_CONNECTION_STRING
```
Report status:
```text
DAB Configuration Verification
Config File: dab-config.json
Validation: Passed
Database Type: mssql
Connection: @env('DAB_CONNECTION_STRING')
Entities:
- Products (dbo.Products) - anonymous:read
- Orders (dbo.Orders) - anonymous:read
- Customers (dbo.Customers) - authenticated:*
Environment:
DAB_CONNECTION_STRING: Set
Status: Ready to start
```
### Step 5: Configure Claude Code
DAB is **not enabled by default** in the plugin. Add mssql-dab to your project's `.claude/settings.json`:
```json
{
"mcpServers": {
"mssql-dab": {
"type": "http",
"url": "http://localhost:5000/mcp"
}
}
}
```
Or to enable globally, add to `~/.claude.json` under `mcpServers`.
### Step 6: Start Instructions
```text
Setup Complete - Starting DAB
IMPORTANT: DAB uses HTTP transport. You must start DAB separately.
To start the DAB server (run in a separate terminal):
# Set connection string (if not in profile)
export DAB_CONNECTION_STRING="Server=localhost;Database=test;..."
# Start DAB - this runs a web server that exposes MCP at /mcp
dab start --config dab-config.json
# DAB will listen on http://localhost:5000 by default
# MCP endpoint: http://localhost:5000/mcp
Available MCP Tools (once DAB is running):
- describe_entities - List available entities and properties
- create_record - Insert new data
- read_records - Query data (auto-cached)
- update_record - Modify data
- delete_record - Remove data
- execute_entity - Execute stored procedures
```
## Output Format
**Installation Success:**
```text
Data API Builder Setup
Phase 1: Installation
Checking global tools...
DAB not found, installing...
dotnet tool install -g microsoft.dataapibuilder --prerelease
Installed: microsoft.dataapibuilder 2.0.0-preview
Phase 2: Configuration
Database type: mssql
Connection: @env('DAB_CONNECTION_STRING')
Config file: dab-config.json
Phase 3: Entities
No entities configured yet.
To add entities:
dab add <EntityName> --source <schema.table> --permissions "anonymous:read"
Examples:
dab add Products --source dbo.Products --permissions "anonymous:read"
dab add Orders --source dbo.Orders --permissions "authenticated:*"
Setup Complete
Environment variable required:
DAB_CONNECTION_STRING="Server=...;Database=...;..."
Test with:
dab start --config dab-config.json
/microsoft:mssql status --dab
```
**Verification Output:**
```text
DAB Configuration Verification
Config: dab-config.json
Database: mssql
Connection: @env('DAB_CONNECTION_STRING')
Host Mode: Development
Entities (3):
Entity Source Permissions
----------- -------------- ---------------
Products dbo.Products anonymous:read
Orders dbo.Orders anonymous:read
Customers dbo.Customers authenticated:*
Environment:
DAB_CONNECTION_STRING: Configured
Validation: Passed
Ready to start: dab start --config dab-config.json
```
## DAB Configuration File
Example `dab-config.json`:
```json
{
"$schema": "https://github.com/Azure/data-api-builder/releases/latest/download/dab.draft.schema.json",
"data-source": {
"database-type": "mssql",
"connection-string": "@env('DAB_CONNECTION_STRING')"
},
"runtime": {
"rest": { "enabled": true },
"graphql": { "enabled": true }
},
"entities": {
"Products": {
"source": "dbo.Products",
"permissions": [{
"role": "anonymous",
"actions": ["read"]
}]
}
}
}
```
## Examples
```bash
# Install DAB and create initial config
/microsoft:setup-dab --init
# Add an entity with read-only access
/microsoft:setup-dab --add Products
# Verify existing configuration
/microsoft:setup-dab --verify
```
## Manual Commands
If you prefer manual setup:
```bash
# Install DAB
dotnet tool install -g microsoft.dataapibuilder --prerelease
# Initialize config
dab init --database-type mssql --connection-string "@env('DAB_CONNECTION_STRING')"
# Add entities
dab add Products --source dbo.Products --permissions "anonymous:read"
dab add Orders --source dbo.Orders --permissions "authenticated:read,create"
# Validate
dab validate
# Start
dab start
```
## Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| `DAB_CONNECTION_STRING` | Yes | SQL Server connection string (used by `dab start`) |
| `DAB_CONFIG_PATH` | No | Path to dab-config.json (default: ./dab-config.json) |
| `DAB_MCP_URL` | No | MCP endpoint URL (default: <http://localhost:5000/mcp>) |
## Connection String Examples
```bash
# Local SQL Server with Windows Auth
DAB_CONNECTION_STRING="Server=localhost;Database=MyDb;Trusted_Connection=True;TrustServerCertificRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.