mcp-telkom-products
v2.1.1
Published
Model Context Protocol (MCP) server that Langflow can use to crawl Telkom Website on the fly. Langflow’s new MCP integration allows it to connect to external MCP servers as tools. Our goal is to create an MCP server (runnable with a simple npx -y command
Downloads
34
Readme
🛠️ 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.
telkom-crawler tool
Crawls the Telkom website, navigates menus, and fetches up-to-date information based on a query.
✅ Prerequisites
Ensure you have the following installed:
Node.js and npx: Verify installation by running:
node -v npx -vMCP Tools CLI: Install using Homebrew:
brew tap f/mcptools brew install mcpAlternatively, install from source:
go install github.com/f/mcptools/cmd/mcptools@latestjq: For formatting JSON responses:
brew install jq
🔍 Listing Available Tools
To view all tools provided by your MCP server:
mcp tools npx -y your-mcp-packageReplace your-mcp-package with the name of your MCP server package.
For example, if your package is named mcp-telkom-products:
mcp tools npx -y mcp-telkom-productsThis 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-packageFor instance, to query the telkom-products tool with the topic "app router":
mcp call telkom-products --params '{"query": "app router"}' npx -y mcp-telkom-productsThis will execute the telkom-products tool with the provided query.
🐚 Interactive Shell Mode
For a more interactive experience, start an MCP shell session:
mcp shell npx -y your-mcp-packageWithin 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
By following these steps, you can effectively query and interact with the tools provided by your MCP server directly from the command line.
