Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bme-mcp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何家明
bme-mcp
Commits
5a29802e
Commit
5a29802e
authored
Apr 30, 2025
by
何家明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加README描述
parent
c2fcc072
Pipeline
#1214
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
10 deletions
+50
-10
README.md
README.md
+50
-0
config.yaml
config.yaml
+0
-10
No files found.
README.md
View file @
5a29802e
## 强制:python版本必须在3.10以上!!!
初次使用,请执行以下命令初始化mcp环境
```
uv init bme-mcp
uv add "mcp[cli]"
```
或者可以使用pip命令
```
pip install "mcp[cli]" # 如果有问题,就用pip3
```
然后执行(或者直接启动api.py的main方法即可)
```
python api.py
```
启动成功后,可以调用接口
```
post http://localhost:8000/mcp/query
{
"message": "治理过程全记录",
"customer_token": "ef616aad53d3eddfb53ca71980421440"
}
```
customer_token是配置在config.yaml中的,它的值是一个随机数,建议使用uuid生成
之所以不直接使用customer_id,是为了保证一定的数据安全性,防止用户随意更改customer_id导致越权
```
yaml
customer
:
customer_token
:
customer_id
```
如果想调整对接的模型,可以修改config.yaml中的配置
active指定当前激活的是什么模型,对应model下面的配置
```
yaml
active
:
deepseek_v3_bme
model
:
deepseek_v3_bme
:
api_key
:
Tc7sY47hiU5d1LNGbJjGBfqfY13IE3khIc0uBvpJ11U
base_url
:
http://10.10.10.12:30100/v1
model_name
:
deepseek-v3
```
\ No newline at end of file
config.yaml
View file @
5a29802e
active
:
deepseek_v3_bme
model
:
# deepseek-v3官方模型
deepseek_v3_official
:
api_key
:
sk-1fc82f2f3b424668bddc84c89b7131d8
base_url
:
https://api.deepseek.com
model_name
:
deepseek-chat
# deepseek-r1官方模型
deepseek_r1_official
:
api_key
:
sk-1fc82f2f3b424668bddc84c89b7131d8
base_url
:
https://api.deepseek.com
model_name
:
deepseek-reasoner
# deepseek-r1公司模型
deepseek_r1_bme
:
api_key
:
Tc7sY47hiU5d1LNGbJjGBfqfY13IE3khIc0uBvpJ11U
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment