New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nerdcode-active-mq

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nerdcode-active-mq

Queues Messages Using Active_MQ and that would be taking JSON body and sending to a particular Queue.

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

🛠️ Querying MCP Tools from the Command Line

This guide walks you through the process of discovering and invoking tools from an MCP (Model Context Protocol) server directly via your terminal.

nerdcode-crawler tool

Queues Messages To ActiveMQ.

✅ Prerequisites

Ensure you have the following installed:

  • Node.js and npx: Verify installation by running:

    node -v
    npx -v
    
  • MCP Tools CLI: Install using Homebrew:

    brew tap f/mcptools
    brew install mcp
    

    Alternatively, install from source:

    go install github.com/f/mcptools/cmd/mcptools@latest
    
  • jq: For formatting JSON responses:

    brew install jq
    

🔍 Listing Available Tools

To view all tools provided by your MCP server:

mcp tools npx -y nerdcode-active-mq

Replace your-mcp-package with the name of your MCP server package.

For example, if your package is named nerdcode-active-mq:

mcp tools npx -y nerdcode-active-mq

This command will output a list of available tools along with their descriptions.

🚀 Invoking a Tool

To call a specific tool with parameters:

mcp call tool-name --params '{"parameter": "value"}' npx -y your-mcp-package

For instance, to query the send_to_queue tool with the topic "app router":

mcp call telkom-products --params '{"query": "app router"}' npx -y nerdcode-active-mq

This will execute the send_to_queue tool with the provided query.

🐚 Interactive Shell Mode

For a more interactive experience, start an MCP shell session:

mcp shell npx -y your-mcp-package

Within this shell, you can list tools, invoke them, and view results without restarting the server each time.

🧪 Using Raw JSON-RPC Requests

If you prefer to interact with your MCP server using raw JSON-RPC requests, you can use curl. Here's how to list available tools:

curl -X POST http://localhost:3000 -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 1
}'

Replace http://localhost:3000 with your MCP server's endpoint.

📚 Additional Resources

  • MCP Tools GitHub Repository
  • Inspecting and Debugging MCP Servers Using CLI and jq

By following these steps, you can effectively query and interact with the tools provided by your MCP server directly from the command line.

FAQs

Package last updated on 09 Jun 2025

Did you know?

Socket

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.

Install

Related posts