### Install and Run CLI from Registry Source: https://github.com/2328io/mcp/blob/main/README.md Install the package globally using Bun and launch the interactive terminal menu. ```bash bun install --global @2328/mcp-server 2328 ``` -------------------------------- ### Build and Install from Source Source: https://github.com/2328io/mcp/blob/main/README.md Build the project locally from the repository and link the binary for execution. ```bash bun install --frozen-lockfile bun run build chmod +x dist/index.js # Linux/macOS bun link 2328 ``` -------------------------------- ### Manage Production Stack Source: https://github.com/2328io/mcp/blob/main/docs/operations.md Commands to validate, build, start, and verify the status of the Docker Compose stack. ```bash docker compose --env-file .env.production -f compose.production.yaml config docker compose --env-file .env.production -f compose.production.yaml build --pull docker compose --env-file .env.production -f compose.production.yaml up -d docker compose --env-file .env.production -f compose.production.yaml ps ``` -------------------------------- ### Development and Verification Commands Source: https://github.com/2328io/mcp/blob/main/README.md Standard commands for installing dependencies, running quality checks, and verifying the package using Bun. ```bash bun install --frozen-lockfile bun run typecheck bun run lint bun test bun run build bun run verify:package bun run verify:tui # With a reachable Redis instance: bun run verify:hosted bun audit ``` -------------------------------- ### Initialize Deployment Source: https://github.com/2328io/mcp/blob/main/docs/operations.md Commands to clone the repository, checkout a specific release, and initialize the secrets directory. ```bash git clone https://github.com/2328io/mcp.git /opt/2328-mcp cd /opt/2328-mcp git checkout cp .env.production.example .env.production chmod 600 .env.production # Set a monitored ACME contact address in .env.production. sh deploy/init-secrets.sh ``` -------------------------------- ### Develop Hosted Mode Locally Source: https://github.com/2328io/mcp/blob/main/README.md Commands to initialize the local development environment and generate a token encryption key. ```bash cp .env.example .env bun -e "console.log(crypto.getRandomValues(new Uint8Array(32)).toBase64({alphabet:'base64url',omitPadding:true}))" # Put the value in TOKEN_ENCRYPTION_KEY and configure the public HTTPS origin. docker compose up --build -d ``` -------------------------------- ### Configure Local MCP Client Source: https://github.com/2328io/mcp/blob/main/README.md JSON configuration blocks for setting up the MCP client, including support for named profiles and environment variables. ```json { "command": "2328", "args": ["--mcp"] } ``` ```json { "command": "2328", "args": ["--mcp", "--profile", "merchant-production"] } ``` ```json { "command": "2328", "args": ["--mcp"], "env": { "PROJECT_ID": "...", "API_KEY": "...", "PAYOUT_API_KEY": "..." } } ``` -------------------------------- ### Deploy Hosted Streamable HTTP Service Source: https://github.com/2328io/mcp/blob/main/README.md Shell commands for deploying the production environment using Docker Compose. ```bash cp .env.production.example .env.production # Set ACME_EMAIL in .env.production. sh deploy/init-secrets.sh docker compose --env-file .env.production -f compose.production.yaml config docker compose --env-file .env.production -f compose.production.yaml build --pull docker compose --env-file .env.production -f compose.production.yaml up -d ``` -------------------------------- ### Deploy MCP service updates Source: https://github.com/2328io/mcp/blob/main/docs/operations.md Commands to update the service by fetching tags, checking out a specific release, and rebuilding the containers. Ensure the environment file is correctly referenced. ```bash cd /opt/2328-mcp git fetch --tags --prune git checkout docker compose --env-file .env.production -f compose.production.yaml build --pull docker compose --env-file .env.production -f compose.production.yaml up -d ``` -------------------------------- ### Production Topology Diagram Source: https://github.com/2328io/mcp/blob/main/docs/operations.md Visual representation of the network flow from the Internet through Caddy to the MCP application and Redis. ```text Internet -> Caddy :443 -> MCP :3000 -> Redis :6379 ``` -------------------------------- ### 2328 CLI Commands Source: https://github.com/2328io/mcp/blob/main/README.md List of available commands for interacting with the 2328 tool via the terminal. ```text 2328 interactive terminal account menu 2328 --mcp [--profile NAME] local MCP over stdio 2328 --serve hosted OAuth MCP service 2328 --help 2328 --version ``` -------------------------------- ### Verify MCP service health and metadata Source: https://github.com/2328io/mcp/blob/main/docs/operations.md Use these curl commands to check service health, readiness, and OAuth configuration. The /mcp endpoint is expected to return 401 for unauthenticated requests. ```bash curl -fsS https://mcp.2328.io/healthz curl -fsS https://mcp.2328.io/readyz curl -fsS https://mcp.2328.io/.well-known/oauth-authorization-server curl -fsS https://mcp.2328.io/.well-known/oauth-protected-resource curl -i https://mcp.2328.io/mcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.