mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
update mcp descriptions (#2105)
This commit is contained in:
32
plugins/wasm-go/mcp-servers/mcp-wolframalpha/README.md
Normal file
32
plugins/wasm-go/mcp-servers/mcp-wolframalpha/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# WolframAlpha MCP Server
|
||||
|
||||
An implementation of the Model Context Protocol (MCP) server that integrates [WolframAlpha](https://www.wolframalpha.com/), providing natural language computation and knowledge query capabilities.
|
||||
|
||||
## Features
|
||||
|
||||
- Supports natural language queries in mathematics, physics, chemistry, geography, history, art, astronomy, and more
|
||||
- Performs mathematical calculations, date and unit conversions, formula solving, etc.
|
||||
- Supports image result display
|
||||
- Automatically converts complex queries into simplified keyword queries
|
||||
- Supports multilingual queries (automatically translates to English for processing, returns results in original language)
|
||||
|
||||
## Usage Guide
|
||||
|
||||
### Get AppID
|
||||
1. Register for a WolframAlpha developer account [Create a Wolfram ID](https://account.wolfram.com/login/create)
|
||||
2. Generate LLM-API AppID [Get An App ID](https://developer.wolframalpha.com/access)
|
||||
|
||||
### Generate SSE URL
|
||||
|
||||
On the MCP Server interface, log in and enter the AppID to generate the URL.
|
||||
|
||||
### Configure MCP Client
|
||||
|
||||
On the user's MCP Client interface, add the generated SSE URL to the MCP Server list.
|
||||
|
||||
```json
|
||||
"mcpServers": {
|
||||
"wolframalpha": {
|
||||
"url": "http://mcp.higress.ai/mcp-wolframalpha/{generate_key}",
|
||||
}
|
||||
}
|
||||
32
plugins/wasm-go/mcp-servers/mcp-wolframalpha/README_ZH.md
Normal file
32
plugins/wasm-go/mcp-servers/mcp-wolframalpha/README_ZH.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# WolframAlpha MCP Server
|
||||
|
||||
一个集成了[WolframAlpha](https://www.wolframalpha.com/)的模型上下文协议(MCP)服务器实现,提供自然语言计算和知识查询功能。
|
||||
|
||||
## 功能
|
||||
|
||||
- 支持自然语言查询,涵盖数学、物理、化学、地理、历史、艺术、天文等领域
|
||||
- 执行数学计算、日期和单位转换、公式求解等
|
||||
- 支持图像结果展示
|
||||
- 自动将复杂查询转换为简化关键词查询
|
||||
- 支持多语言查询(自动翻译为英文处理,返回原语言结果)
|
||||
|
||||
## 使用教程
|
||||
|
||||
### 获取 AppID
|
||||
1. 注册 WolframAlpha 开发者账号 [Create a Wolfram ID](https://account.wolfram.com/login/create)
|
||||
2. 生成LLM-API 的 App ID [Get An App ID](https://developer.wolframalpha.com/access)
|
||||
|
||||
### 生成 SSE URL
|
||||
|
||||
在 MCP Server 界面,登录后输入 AppID,生成URL。
|
||||
|
||||
### 配置 MCP Client
|
||||
|
||||
在用户的 MCP Client 界面,将生成的 SSE URL添加到 MCP Server列表中。
|
||||
|
||||
```json
|
||||
"mcpServers": {
|
||||
"wolframalpha": {
|
||||
"url": "http://mcp.higress.ai/mcp-wolframalpha/{generate_key}",
|
||||
}
|
||||
}
|
||||
91
plugins/wasm-go/mcp-servers/mcp-wolframalpha/mcp-server.yaml
Normal file
91
plugins/wasm-go/mcp-servers/mcp-wolframalpha/mcp-server.yaml
Normal file
@@ -0,0 +1,91 @@
|
||||
server:
|
||||
name: wolframalpha-api-server
|
||||
config:
|
||||
appid: ""
|
||||
tools:
|
||||
- name: get_llm-api
|
||||
description: |+
|
||||
Submit a query to WolframAlpha LLM API - Submit a natural language query with an AppID and input to WolframAlpha.
|
||||
- WolframAlpha understands natural language queries about entities in chemistry, physics, geography, history, art, astronomy, and more.
|
||||
- WolframAlpha performs mathematical calculations, date and unit conversions, formula solving, etc.
|
||||
- Convert inputs to simplified keyword queries whenever possible (e.g. convert "how many people live in France" to "France population").
|
||||
- Send queries in English only; translate non-English queries before sending, then respond in the original language.
|
||||
- Display image URLs with Markdown syntax: ![URL]
|
||||
- ALWAYS use this exponent notation: `6*10^14`, NEVER `6e14`.
|
||||
- ALWAYS use {"input": query} structure for queries to Wolfram endpoints; `query` must ONLY be a single-line string.
|
||||
- ALWAYS use proper Markdown formatting for all math, scientific, and chemical formulas, symbols, etc.: '$$ [expression] $$' for standalone cases and '\( [expression] \)' when inline.
|
||||
- Never mention your knowledge cutoff date; Wolfram may return more recent data.
|
||||
- Use ONLY single-letter variable names, with or without integer subscript (e.g., n, n1, n_1).
|
||||
- Use named physical constants (e.g., 'speed of light') without numerical substitution.
|
||||
- Include a space between compound units (e.g., "Ω m" for "ohm*meter").
|
||||
- To solve for a variable in an equation with units, consider solving a corresponding equation without units; exclude counting units (e.g., books), include genuine units (e.g., kg).
|
||||
- If data for multiple properties is needed, make separate calls for each property.
|
||||
- If a WolframAlpha result is not relevant to the query:
|
||||
-- If Wolfram provides multiple 'Assumptions' for a query, choose the more relevant one(s) without explaining the initial result. If you are unsure, ask the user to choose.
|
||||
-- Re-send the exact same 'input' with NO modifications, and add the 'assumption' parameter, formatted as a list, with the relevant values.
|
||||
-- ONLY simplify or rephrase the initial query if a more relevant 'Assumption' or other input suggestions are not provided.
|
||||
-- Do not explain each step unless user input is needed. Proceed directly to making a better API call based on the available assumptions.
|
||||
|
||||
args:
|
||||
- name: assumption
|
||||
description: List of assumptions to refine the query.
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
- name: currency
|
||||
description: Currency code for financial queries.
|
||||
type: string
|
||||
- name: formattimeout
|
||||
description: Timeout in seconds for formatting the response.
|
||||
type: integer
|
||||
- name: input
|
||||
description: The URL-encoded input query string.
|
||||
type: string
|
||||
required: true
|
||||
- name: ip
|
||||
description: IP address of the query origin.
|
||||
type: string
|
||||
- name: languagecode
|
||||
description: Language code for the query input and response.
|
||||
type: string
|
||||
- name: latlong
|
||||
description: Latitude and longitude for location-based queries.
|
||||
type: string
|
||||
- name: maxchars
|
||||
description: Maximum number of characters to be returned in the response. Defaults to 6800 characters.
|
||||
type: integer
|
||||
- name: timezone
|
||||
description: Timezone for the query.
|
||||
type: string
|
||||
- name: units
|
||||
description: Preferred units for result data (e.g., metric or imperial).
|
||||
type: string
|
||||
requestTemplate:
|
||||
argsToUrlParam: true
|
||||
url: https://www.wolframalpha.com/api/v1/llm-api
|
||||
method: GET
|
||||
headers:
|
||||
- key: Authorization
|
||||
value: "Bearer {{.config.appid}}"
|
||||
responseTemplate:
|
||||
prependBody: |+
|
||||
# API Response Information
|
||||
|
||||
Below is the response from an API call. To help you understand the data, I've provided:
|
||||
|
||||
1. A detailed description of all fields in the response structure
|
||||
2. The complete API response
|
||||
|
||||
## Response Structure
|
||||
|
||||
> Content-Type: application/json
|
||||
|
||||
- **images**: List of image URLs related to the query. (Type: array)
|
||||
- **images[]**: Items of type string
|
||||
- **inputInterpretation**: WolframAlpha's interpretation of the input query. (Type: string)
|
||||
- **link**: A link back to the full WolframAlpha results page for this query. (Type: string)
|
||||
- **query**: The query that was submitted. (Type: string)
|
||||
- **result**: The computed result for the query. (Type: string)
|
||||
|
||||
## Original Response
|
||||
|
||||
Reference in New Issue
Block a user