
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
mcp-debugger
Advanced tools
A Node.js application with Express and Newman for running and debugging Postman collections
A Node.js module for debugging API calls and running Postman collections with automatic authentication.
npm install -g mcp-debugger
npm install mcp-debugger
Create a .env
file in your project root with your API keys:
# API Keys
OPENAI_API_KEY=your_openai_api_key
STRIPE_KEY=your_stripe_key
GITHUB_TOKEN=your_github_token
# Newman Configuration
NEWMAN_TIMEOUT=60000
NEWMAN_ITERATIONS=1
# Server Configuration
PORT=3002
NODE_ENV=development
You can also use the provided .env.example
file as a template:
cp .env.example .env
# Start the server with default options
mcp-debugger
# Start the server with custom port
mcp-debugger --port 3003
# Start the server in production mode
mcp-debugger --env production
# Show help
mcp-debugger --help
const McpDebugger = require('mcp-debugger');
// Create a new instance with default options
const server = new McpDebugger();
// Create a new instance with custom options
const server = new McpDebugger({
port: 3003,
env: 'production',
newmanTimeout: 30000,
newmanIterations: 2
});
// Start the server
server.start()
.then(() => {
console.log('Server started');
})
.catch(err => {
console.error('Failed to start server:', err);
});
// Stop the server
server.stop()
.then(() => {
console.log('Server stopped');
})
.catch(err => {
console.error('Failed to stop server:', err);
});
// Enable debug mode for a URL
server.enableDebug('/api/status');
// Enable debug mode for all URLs
server.enableDebug('*');
// Disable debug mode for a URL
server.disableDebug('/api/status');
// Get debug status
const status = server.getDebugStatus();
console.log(status);
// Get the Express app instance for further customization
const app = server.getApp();
app.get('/custom-endpoint', (req, res) => {
res.json({ message: 'Custom endpoint' });
});
# Enable debug mode for a specific URL
curl -X POST http://localhost:3002/debug/on \
-H "Content-Type: application/json" \
-d '{
"url": "/api/status"
}'
# Enable debug mode for all URLs (using wildcard)
curl -X POST http://localhost:3002/debug/on \
-H "Content-Type: application/json" \
-d '{
"url": "*"
}'
# Disable debug mode for a URL
curl -X POST http://localhost:3002/debug/off \
-H "Content-Type: application/json" \
-d '{
"url": "/api/status"
}'
# Check debug status
curl http://localhost:3002/debug/status
# Run a Postman collection
curl -X POST http://localhost:3002/api/run-collection \
-H "Content-Type: application/json" \
-d '{
"collectionPath": "./collections/example.json",
"environmentPath": "./collections/example-environment.json"
}'
# Test OpenAI API integration with a "Hello world" prompt
curl -X POST http://localhost:3002/test-api \
-H "Content-Type: application/json"
The application automatically detects which service is being called in your Postman collections and adds the appropriate authentication headers using the API keys from your .env file.
When running Postman collections, the application provides comprehensive logging of all requests and responses in the terminal, including:
This detailed logging makes it easier to debug API calls and understand the complete request/response cycle.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Node.js application with Express and Newman for running and debugging Postman collections
The npm package mcp-debugger receives a total of 6 weekly downloads. As such, mcp-debugger popularity was classified as not popular.
We found that mcp-debugger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.