mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
7fc94018a9
Rename the entire project from mcphost to kit, including: - Go module path and all import paths - SDK type MCPHost -> Kit, file renames mcphost.go -> kit.go - CLI command name, usage strings, UI labels (KIT in literature) - Config paths (.mcphost -> .kit), env prefix (MCPHOST_ -> KIT_) - Data/credential/hooks directory paths - Remove legacy .mcp config fallbacks - Session metadata field (mcphost_version -> kit_version) - MCP client identity name - Build output, goreleaser binary name - All documentation, examples, scripts, and test files
42 lines
1.3 KiB
Bash
Executable File
42 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env -S kit script
|
|
---
|
|
# Example script demonstrating both environment variable and script argument substitution
|
|
# Environment variables are processed first, then script arguments
|
|
|
|
mcpServers:
|
|
github:
|
|
type: local
|
|
command: ["gh", "api"]
|
|
environment:
|
|
GITHUB_TOKEN: "${env://GITHUB_TOKEN}"
|
|
DEBUG: "${env://DEBUG:-false}"
|
|
|
|
filesystem:
|
|
type: builtin
|
|
name: fs
|
|
options:
|
|
allowed_directories: ["${env://WORK_DIR:-/tmp}"]
|
|
|
|
model: "${env://MODEL:-anthropic/claude-sonnet-4-5-20250929}"
|
|
debug: ${env://DEBUG:-false}
|
|
---
|
|
List ${repo_type:-public} repositories for user ${username}.
|
|
Use the GitHub API to fetch ${count:-10} repositories.
|
|
Working directory is ${env://WORK_DIR:-/tmp}.
|
|
|
|
# Usage:
|
|
# 1. Set environment variables:
|
|
# export GITHUB_TOKEN="ghp_your_token_here"
|
|
# export DEBUG="true"
|
|
# export WORK_DIR="/home/user/projects"
|
|
#
|
|
# 2. Run with script arguments:
|
|
# kit script env-substitution-script.sh --args:username alice --args:repo_type private --args:count 5
|
|
#
|
|
# This will:
|
|
# - Use GITHUB_TOKEN from environment
|
|
# - Set DEBUG=true from environment
|
|
# - Use WORK_DIR=/home/user/projects from environment
|
|
# - Use username=alice from script args
|
|
# - Use repo_type=private from script args
|
|
# - Use count=5 from script args |