genjo-mcp-server 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +57 -0
  2. package/Skills.md +86 -0
  3. package/index.js +30567 -0
  4. package/package.json +34 -0
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # Genjo MCP Server
2
+
3
+ This is the Model Context Protocol (MCP) server for the Genjo AI News System.
4
+ It allows you to access Genjo's features from Claude Desktop or Claude Code.
5
+
6
+ ## Usage
7
+
8
+ ### Prerequisites
9
+ - Node.js 18 or higher
10
+
11
+ ### Installation
12
+
13
+ You can run this server directly using `npx` or by installing it globally.
14
+
15
+ #### Option 1: Run directly (Recommended)
16
+
17
+ ```bash
18
+ npx -y genjo-mcp-server
19
+ ```
20
+
21
+ #### Option 2: Install globally
22
+
23
+ ```bash
24
+ npm install -g genjo-mcp-server
25
+ genjo-mcp
26
+ ```
27
+
28
+ #### Option 3: Smithery.ai (Automated)
29
+
30
+ You can install this server from Smithery.ai to easily integrate with Claude Desktop.
31
+
32
+ ### Configuration for Claude Desktop
33
+
34
+ Add the following to your `claude_desktop_config.json`:
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "genjo": {
40
+ "command": "npx",
41
+ "args": ["-y", "genjo-mcp-server"],
42
+ "env": {
43
+ "GENJO_API_BASE_URL": "https://api.gen-jo.com"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ If you have an API Key (optional), add it to the `env` section:
51
+ ```json
52
+ "GENJO_API_KEY": "your_api_key"
53
+ ```
54
+
55
+ ## AI Agent Optimization
56
+
57
+ We have included a `Skills.md` file in this package. If you are using this server with an AI agent that supports skill definitions, providing the content of `Skills.md` in the system prompt or context window will significantly improve the agent's ability to use the tools effectively.
package/Skills.md ADDED
@@ -0,0 +1,86 @@
1
+ # Genjo MCP Server Skills Guide
2
+
3
+ This guide describes the capabilities of the Genjo MCP Server and provides best practices for AI agents to effectively utilize its tools.
4
+
5
+ ## 🧠 Core Capabilities
6
+
7
+ Genjo is an AI News Agent specialized in Asian markets and multilingual content. This MCP server provides access to:
8
+
9
+ 1. **Real-time AI News**: Aggregated from global sources.
10
+ 2. **Deep Analysis**: Fact-checking, simple explanations, and related stock analysis.
11
+ 3. **Multilingual Support**: Content available in Japanese (ja), English (en), Chinese (zh), Korean (ko), and Hindi (hi).
12
+
13
+ ## 🛠️ Tool Definitions & Usage
14
+
15
+ ### 1. `get_latest_news`
16
+ **Purpose**: Retrieves the most recent AI news items generated today.
17
+ **Best for**: "What's new in AI today?", "Give me a daily AI news summary."
18
+
19
+ - **Params**:
20
+ - `lang` (optional): Language code (default: "ja").
21
+ - **Output**: List of news items with IDs, titles, summaries, and source URLs.
22
+
23
+ ### 2. `get_news_detail`
24
+ **Purpose**: Fetches the full content of a specific news item.
25
+ **Best for**: "Tell me more about news ID 123.", "Read the full article for the first news item."
26
+
27
+ - **Params**:
28
+ - `id` (required): The numeric ID of the news item.
29
+ - `lang` (optional): Language code.
30
+ - **Output**: Full markdown content of the news item.
31
+
32
+ ### 3. `get_simple_explanation`
33
+ **Purpose**: Provides a beginner-friendly explanation of a complex news topic.
34
+ **Best for**: "Explain this news to a 5-year-old.", "What does this actually mean?"
35
+
36
+ - **Params**:
37
+ - `id` (required): News ID.
38
+ - `lang` (optional): Language code.
39
+ - **Output**: A simplified explanation text.
40
+
41
+ ### 4. `get_fact_check`
42
+ **Purpose**:verifies the claims in a news item against multiple sources.
43
+ **Best for**: "Is this true?", "Are there any hallucinations in this article?", "Verify the sources."
44
+
45
+ - **Params**:
46
+ - `id` (required): News ID.
47
+ - `lang` (optional): Language code.
48
+ - **Output**: A structured fact-check report including verdict (True/False/Unverified) and sources.
49
+
50
+ ### 5. `get_related_stocks`
51
+ **Purpose**: Identifies public companies related to the news and analyzes potential market impact.
52
+ **Best for**: "Which stocks might move because of this?", "Investment impact analysis."
53
+
54
+ - **Params**:
55
+ - `id` (required): News ID.
56
+ - `lang` (optional): Language code.
57
+ - **Output**: List of related tickers, relevance scores, and impact analysis.
58
+
59
+ ### 6. `get_past_news`
60
+ **Purpose**: Searches historical news database.
61
+ **Best for**: "What happened last week?", "Search for news about OpenAI from previous days."
62
+
63
+ - **Params**:
64
+ - `lang` (optional): Language code.
65
+ - `offset` (optional): Pagination offset.
66
+ - `limit` (optional): Number of items (default: 10).
67
+ - **Output**: Chronological list of past news items.
68
+
69
+ ## 🔄 Common Usage Patterns
70
+
71
+ ### Pattern A: Daily Briefing & Deep Dive
72
+ 1. Call `get_latest_news(lang="en")` to get a list of headlines.
73
+ 2. Identify interesting items (e.g., ID: 105).
74
+ 3. Call `get_news_detail(id=105)` to read the full content.
75
+ 4. If the content is complex, call `get_simple_explanation(id=105)`.
76
+
77
+ ### Pattern B: Investment Research
78
+ 1. Call `get_latest_news()` to monitor market-moving news.
79
+ 2. For a significant event (e.g., "NVIDIA announces new chip"), call `get_related_stocks(id=...)`.
80
+ 3. Call `get_fact_check(id=...)` to ensure the news isn't a rumor before acting.
81
+
82
+ ## ⚠️ Error Handling
83
+
84
+ - **404 Not Found**: The news ID might be invalid or too old. Try `get_latest_news` again to get fresh IDs.
85
+ - **API Error**: If the backend is down, wait a moment and retry.
86
+ - **Language Fallback**: If content isn't available in the requested language, the server may return English content. Always check the output language.