0.1.7 • Published 7 months ago

@chrom-ar/mcp v0.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Chroma MCP Client

A TypeScript client for the Model Context Protocol (MCP) using Waku for decentralized communication.

Setup

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Create a .env file based on the provided .env.example:
    cp .env.example .env
  4. 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:

  1. Automatically load environment variables from a .env file in the current directory if it exists
  2. Apply any environment variables provided via the -e or --env flags
  3. 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 to
  • WAKU_PING_COUNT - Number of ping attempts to make when connecting
  • WAKU_TOPIC - Base topic name to use for communication
  • WAKU_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)