0.1.7 • Published 7 months ago
@chrom-ar/mcp v0.1.7
Chroma MCP Client
A TypeScript client for the Model Context Protocol (MCP) using Waku for decentralized communication.
Setup
- Clone this repository
- Install dependencies:
npm install
- Create a
.env
file based on the provided.env.example
:cp .env.example .env
- Customize your
.env
file as needed
Development
Build the project:
npm run build
Start the main application:
npm start
Run in development mode with auto-reload (Not tested):
npm run dev
Using with npx
Once published, you can run the MCP client directly using npx:
# Run with environment variables from a .env file in the current directory
npx @chrom-ar/mcp
# Run with a specific environment variable
npx @chrom-ar/mcp -e API_ENDPOINT=https://api.example.com
# Show help
npx @chrom-ar/mcp --help
# Show version
npx @chrom-ar/mcp --version
When using the npx command, the client will:
- Automatically load environment variables from a
.env
file in the current directory if it exists - Apply any environment variables provided via the
-e
or--env
flags - Start the MCP server
Environment Configuration
The following environment variables can be configured in your .env
file:
WAKU_STATIC_PEERS
- Comma-separated list of Waku peers to connect toWAKU_PING_COUNT
- Number of ping attempts to make when connectingWAKU_TOPIC
- Base topic name to use for communicationWAKU_CONTENT_TOPIC
- Content topic format (includes PLACEHOLDER for substitution)
Configuration
Environment Variables
PROPOSAL_EXPIRATION_MINUTES
: Sets how long proposals are stored before expiring (default: 10 minutes)