MCPcopy Create free account

hub / github.com/6551Team/opennews-mcp / functions

Functions52 in github.com/6551Team/opennews-mcp

↓ 16 callersFunctionrequire_token
检查是否配置了 token,未配置时返回错误信息。
src/opennews_mcp/config.py:40
↓ 14 callersFunctionmake_serializable
Recursively convert non-JSON-serializable types.
src/opennews_mcp/config.py:55
↓ 10 callersFunction_clamp
(value: int, low: int, high: int)
src/opennews_mcp/tools/finance.py:9
↓ 8 callersFunctionclamp_limit
Clamp user-supplied limit to [1, MAX_ROWS].
src/opennews_mcp/config.py:50
↓ 8 callersMethodsearch_news
POST /open/news_search — 搜索新闻文章
src/opennews_mcp/api_client.py:137
↓ 7 callersMethod_request
Execute an HTTP request with automatic retry on connection errors.
src/opennews_mcp/api_client.py:110
↓ 3 callersMethodclose
(self)
src/opennews_mcp/api_client.py:343
↓ 2 callersMethod_request
Execute an HTTP request with automatic retry on connection errors.
src/opennews_mcp/api_client.py:39
↓ 2 callersMethod_reset_client
Force close and recreate the HTTP client.
src/opennews_mcp/api_client.py:30
↓ 2 callersMethod_reset_client
Force close and recreate the HTTP client.
src/opennews_mcp/api_client.py:99
↓ 2 callersMethodget_engine_tree
GET /open/news_type — 获取所有新闻源分类
src/opennews_mcp/api_client.py:132
↓ 2 callersFunctionmain
Run the MCP server (stdio transport by default).
src/opennews_mcp/server.py:18
↓ 1 callersMethod_get_client
(self)
src/opennews_mcp/api_client.py:25
↓ 1 callersMethod_get_client
(self)
src/opennews_mcp/api_client.py:91
↓ 1 callersMethod_headers
(self)
src/opennews_mcp/api_client.py:85
↓ 1 callersMethod_next_id
(self)
src/opennews_mcp/api_client.py:335
↓ 1 callersFunction_read_knowledge
(name: str)
src/opennews_mcp/app.py:75
↓ 1 callersMethodclose
(self)
src/opennews_mcp/api_client.py:36
↓ 1 callersMethodconnect
(self)
src/opennews_mcp/api_client.py:339
↓ 1 callersMethodget_company_info
POST /open/finance-enhance/company-info — get company metadata and report indexes.
src/opennews_mcp/api_client.py:182
↓ 1 callersMethodget_company_report_text
POST /open/finance-enhance/company-report-text — get filing/report/transcript text.
src/opennews_mcp/api_client.py:205
↓ 1 callersMethodget_crypto_holding_changes
POST /open/finance-enhance/crypto-holding-changes — get holdings changes.
src/opennews_mcp/api_client.py:280
↓ 1 callersMethodget_crypto_holdings
POST /open/finance-enhance/crypto-holdings — get on-chain holdings evidence.
src/opennews_mcp/api_client.py:241
↓ 1 callersMethodget_free_categories
GET /open/free_categories — 获取所有新闻分类
src/opennews_mcp/api_client.py:59
↓ 1 callersMethodget_free_hot
GET /open/free_hot — 获取热点新闻和推文
src/opennews_mcp/api_client.py:64
↓ 1 callersMethodreceive_news
(self, timeout: float = 10.0)
src/opennews_mcp/api_client.py:370
↓ 1 callersMethodsearch_companies
POST /open/finance-enhance/company-search — search public company candidates.
src/opennews_mcp/api_client.py:163
↓ 1 callersMethodsubscribe_latest
订阅新闻推送,支持过滤器
src/opennews_mcp/api_client.py:348
Method__init__
(self, base_url: str = API_BASE_URL)
src/opennews_mcp/api_client.py:21
Method__init__
(self, base_url: str = API_BASE_URL, token: str = API_TOKEN)
src/opennews_mcp/api_client.py:80
Method__init__
(self, wss_url: str = WSS_URL, token: str = API_TOKEN)
src/opennews_mcp/api_client.py:330
Functionapp_lifespan
Manage the API client lifecycle.
src/opennews_mcp/app.py:26
Methodclose
(self)
src/opennews_mcp/api_client.py:105
Functionget_company_info
Resolve a company and return available SEC filings, research reports, transcripts, and financial item indexes. Args: company: Company nam
src/opennews_mcp/tools/finance.py:38
Functionget_company_report_text
Get SEC filing, research report, or earnings-call transcript text by report name or identifier. Args: company: Company name, ticker, or C
src/opennews_mcp/tools/finance.py:74
Functionget_crypto_holding_changes
Query on-chain holdings changes between adjacent wallet snapshots. Args: institution: Optional institution name. address: Optiona
src/opennews_mcp/tools/finance.py:180
Functionget_crypto_holdings
Query visible on-chain holdings evidence for an institution or wallet address. Returns Blockscout address-balance evidence. This is not proof of
src/opennews_mcp/tools/finance.py:126
Functionget_high_score_news
Get highly-rated market news and signals by AI score, sorted by score descending. AI scores range 0-100 and reflect potential market impact acros
src/opennews_mcp/tools/news.py:226
Functionget_hot_news
Get hot market news and tweets by category. Use this free endpoint for curated real-time financial market news, including crypto, equities, m
src/opennews_mcp/tools/free.py:30
Functionget_latest_news
Get the most recent market-moving news and signals, newest first. Returns news from 84+ sources across all 6 categories (news, listing, onchain,
src/opennews_mcp/tools/news.py:17
Functionget_news_by_engine
Get market news or signal items filtered by engine type. Engine types: "news", "listing", "onchain", "meme", "market", "prediction". - "new
src/opennews_mcp/tools/news.py:134
Functionget_news_by_signal
Get market news filtered by AI trading signal type. Each item from 84+ sources is AI-analyzed for directional market impact. Args: s
src/opennews_mcp/tools/news.py:255
Functionget_news_by_source
Get market news or signal items from a specific source/category. Use get_news_sources first to see available engine types and news type codes.
src/opennews_mcp/tools/news.py:98
Functionget_news_categories
Get all available free market news categories and subcategories. Returns a list of categories, each containing subcategories, for use with th
src/opennews_mcp/tools/free.py:13
Functionget_news_sources
Get all available market news source categories and their metadata. This platform aggregates 84+ real-time data sources across 6 engine categorie
src/opennews_mcp/tools/discovery.py:10
Functionknowledge_guide
Usage guide — tool workflows, search strategies, best practices.
src/opennews_mcp/app.py:83
Functionlist_news_types
List all available market news type codes for filtering. Returns a flat list of news source codes that can be used with the newsType paramete
src/opennews_mcp/tools/discovery.py:79
Functionsearch_companies
Search public company candidates by keyword, ticker, CIK, or fuzzy company name. Args: keyword: Search keyword, ticker, CIK, or company n
src/opennews_mcp/tools/finance.py:14
Functionsearch_news
Search real-time financial market news by keyword in text content. Searches across all 84+ sources for crypto, U.S. equities, macro, semiconducto
src/opennews_mcp/tools/news.py:44
Functionsearch_news_advanced
Advanced financial market news search with multiple filters. Combines keyword, digital asset coin, engine type, source, and score filters for pre
src/opennews_mcp/tools/news.py:167
Functionsearch_news_by_coin
Search news and market signals related to a specific digital asset coin/token. Finds all mentions across 84+ sources: media coverage, exchange li
src/opennews_mcp/tools/news.py:72
Functionsubscribe_latest_news
Subscribe to real-time financial market news updates via WebSocket. Connects to the WebSocket feed, subscribes to news with optional filters,
src/opennews_mcp/tools/realtime.py:10