MCP ExplorerExplorer

Hyper Mcp Hackernews Tool

@hungranon a year ago
3 Apache-2.0
FreeCommunity
AI Systems
A hyper-mcp plugin to fetch and display top 5 Hacker News stories.

Overview

What is Hyper Mcp Hackernews Tool

hyper-mcp-hackernews-tool is a plugin for hyper-mcp that retrieves the top 5 stories from Hacker News using its API.

Use cases

Use cases include integrating Hacker News stories into dashboards, monitoring applications, or any development environment where real-time news updates are beneficial.

How to use

To use the tool, add it to your hyper-mcp configuration with the appropriate path and ensure the allowed_host includes ‘hacker-news.firebaseio.com’. You can then call the plugin via the terminal with a JSON-RPC request.

Key features

Key features include fetching the top 5 stories from Hacker News, displaying titles, scores, authors, and URLs, and a simple API interaction with a dummy parameter.

Where to use

This tool can be used in any application or environment that utilizes hyper-mcp and requires access to the latest stories from Hacker News.

Content

Hacker News Plugin

A hyper-mcp plugin that fetches the top stories from Hacker News (max 100 stories).

## Overview

This plugin connects to the Hacker News API to fetch the current top stories and display them with their titles, scores, authors, and URLs.

Usage

Add the plugin to your hyper-mcp configuration:
can be oci://ghcr.io/hungran/hyper-mcp-hackernews-tool.wasm
or wasi path file plugin.wasm

{
  "plugins": [
    {
      "name": "hackernews",
      "path": "oci://ghcr.io/hungran/hyper-mcp-hackernews-tool:latest",
      "runtime_config": {
        "allowed_host": "hacker-news.firebaseio.com"
      }
    }
  ]
}

The allowed_host configuration must include * or specifically hacker-news.firebaseio.com to allow API requests.

Building

To build the plugin:

# Make sure build.sh is executable
chmod +x build.sh

# Run the build script
./build.sh

This will create a plugin.wasm file that can be referenced in your hyper-mcp configuration.

API

The plugin requires a simple dummy parameter:

{
  "random_string": "any_value"
}

Example Usage

From the terminal:

echo '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "hackernews", "arguments": { "random_string": "dummy" } } }' | hyper-mcp

Output

The plugin returns a formatted list of the top 5 stories from Hacker News, including:

  • Title
  • Score
  • Author
  • URL (if available)

Dependencies

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers