Skip to content
Back to skills

417 Build 34d67a2d

ASecurity

The MCP Context Provider uses an automated build system to eliminate duplication and ensure consistency between source files and packaged distributions.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentpythonbashazuregitdocumentation

Works with

  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 417-build_34d67a2d --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 417 Build 34d67a2d?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 417 Build 34d67a2d
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-417-build-34d67a2d/badge)](https://www.skillsdirectory.com/skills/tools-only-417-build-34d67a2d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Build System Documentation

## Overview

The MCP Context Provider uses an automated build system to eliminate duplication and ensure consistency between source files and packaged distributions.

## Single Source of Truth

- **Source files**: Repository root (`context_provider_server.py`, `contexts/*.json`)
- **Build artifacts**: Generated `dxt/` directory (not version controlled)
- **Package output**: `mcp-context-provider-{version}.dxt`

## Build Process

### 1. Automated Build Script

```bash
python scripts/build_dxt.py [--version VERSION] [--clean]
```

**What it does:**
- Validates all source files (server script and context JSON files)
- Creates temporary `dxt/` directory structure
- Copies latest server and context files
- Generates DXT manifest with correct version
- Builds and packages the DXT file
- Cleans up build artifacts

### 2. Installation Script

```bash
./scripts/install.sh
```

**Updated workflow:**
- Builds package fresh from source (no downloads)
- Uses latest context provider server with dynamic loading
- Installs all 8 context files automatically
- Sets up virtual environment and dependencies

## Development Workflow

### Making Changes

1. **Edit source files** in repository root:
   - `context_provider_server.py` - Main server
   - `contexts/*.json` - Context configurations

2. **Test changes** locally:
   ```bash
   # Test server directly
   python context_provider_server.py

   # Or build and test package
   python scripts/build_dxt.py
   ```

3. **No manual copying required** - build script handles synchronization

### Version Management

- Update version in `scripts/build_dxt.py` or use `--version` flag
- Version is automatically applied to manifest and package name
- Consistent versioning across all components

### File Structure

```
MCP-Context-Provider/
├── context_provider_server.py     # ← Single source server
├── contexts/                      # ← Single source contexts
│   ├── azure_context.json
│   ├── git_context.json
│   └── ... (8 total)
├── scripts/
│   ├── build_dxt.py              # ← Automated builder
│   └── install.sh                # ← Updated installer
├── dxt/                          # ← Generated (gitignored)
│   ├── server/
│   ├── contexts/
│   └── manifest.json
└── mcp-context-provider-*.dxt    # ← Package output
```

## Benefits

- **No duplication**: Single source of truth for all files
- **No version drift**: Build script ensures synchronization
- **Automated packaging**: One command builds complete package
- **Clean repository**: Build artifacts not in version control
- **Dynamic loading**: Server discovers all context files automatically

## Migration Notes

- Old `/dxt/` directory removed from version control
- Existing installations should reinstall to get dynamic loading
- All 8 context files now included automatically
- Build system validates JSON syntax before packaging

## Build Validation

The build script performs comprehensive validation:

- ✅ Source file existence
- ✅ JSON syntax validation
- ✅ Server script functionality
- ✅ Complete file copying
- ✅ Package integrity

Any validation failure stops the build process with clear error messages.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.