
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
blah-mcp-test
Advanced tools
A command-line tool for testing MCP (Model Context Protocol) tools with any OpenAI model. This tool integrates a client and server in a single process, making it easy to test and interact with MCP tools.
npm install -g blah-mcp-test
Create a .env
file in your project directory by copying the example:
cp .env.example .env
Then edit .env
and add your configuration:
# MCP Server Configuration
BLAH_HOST=https://ajax-blah.web.val.run
# OpenAI API Configuration
OPENAI_API_KEY=your_api_key_here
# Set required environment variables
export BLAH_HOST=https://ajax-blah.web.val.run
export OPENAI_API_KEY=your_api_key
# Run with default options
blah-mcp-test --prompt "What is the capital of France?"
# Run with custom model and system prompt
blah-mcp-test \
--model gpt-4o-mini \
--systemPrompt "You are a helpful assistant" \
--prompt "What is the capital of France?"
# Use a configuration file
blah-mcp-test -c ./my-config.json --prompt "Create a tool that generates random numbers"
You can configure the tool in three ways (in order of precedence):
blah-mcp-test.json
)Options:
-V, --version output version number
-m, --model <model> OpenAI model to use (default: "gpt-4o-mini")
-s, --systemPrompt <text> System prompt for the AI (default: "You are a helpful assistant")
-p, --prompt <text> User prompt to send
-c, --config <path> Path to config file (default: "./blah-mcp-test.json")
--host <url> BLAH_HOST value
--openai-key <key> OpenAI API key
-h, --help display help for command
Create a blah-mcp-test.json
in your project directory:
{
"model": "gpt-4o-mini",
"systemPrompt": "You are a helpful assistant",
"host": "https://ajax-blah.web.val.run",
"openaiKey": "your_api_key"
}
BLAH_HOST
: The host URL for the MCP server (required)OPENAI_API_KEY
: Your OpenAI API key (required)# Create a tool that generates random numbers
blah-mcp-test --prompt "Create a tool that generates random numbers between a min and max value"
# Create a tool that fetches weather data
blah-mcp-test --prompt "Create a tool that fetches weather data for a given city"
# Use the LOTR horoscope tool
blah-mcp-test --prompt "What's my Lord of the Rings horoscope for birthdate 03-14?"
# Generate a random letter
blah-mcp-test --prompt "Generate a random letter between A and Z"
# Clone the repository
git clone https://github.com/yourusername/blah-mcp-test.git
cd blah-mcp-test
# Install dependencies
npm install
# Run in development mode
npm run dev -- --prompt "Your test prompt"
# Build for production
npm run build
# Run the built version
npm start -- --prompt "Your test prompt"
The tool consists of three main components:
┌─────────────┐ ┌──────────────┐ ┌───────────────┐
│ CLI Input │───▶│ MCP Server │◀───▶│ BLAH_HOST │
└─────────────┘ └──────────────┘ └───────────────┘
▲
│
┌──────┴──────┐
│ MCP Client │
└──────┬──────┘
│
┌──────┴──────┐
│ OpenAI API │
└─────────────┘
Missing Environment Variables
Error: BLAH_HOST must be provided
Solution: Set the BLAH_HOST environment variable or provide it in the config file
OpenAI API Key Issues
Error: OpenAI API key is required
Solution: Set the OPENAI_API_KEY environment variable or provide it in the config file
Tool Not Found
Error: Tool 'xyz' was not found
Solution: Check the available tools list and ensure you're using the correct tool name
Contributions are welcome! Please follow these steps:
ISC
FAQs
CLI tool for running MCP test client with integrated server
We found that blah-mcp-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.