Files
demo-ai-develops/README.md
潘舒啸 ac3a18bb6b
Some checks failed
ai-reviews / review (pull_request) Failing after 6m45s
Initial commit
2025-11-18 13:28:56 +00:00

62 lines
929 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Devstar MCP
devstar mcp 工程项目模板
### 1.安装mcp
```
git clone https://gitea.com/gitea/gitea-mcp.git
```
构建前请先安装:
- make
- Golang (Go 1.24 or later recommended)
```
make install
```
安装后,将 gitea-mcp 可执行文件复制到系统 PATH 目录(例如: /usr/local/bin/)
```
cp gitea-mcp /usr/local/bin/
```
### 2.配置本地大模型
```
curl -fsSL https://ollama.com/install.sh | sh
ollama pull <llm> //eg:deepseek-r1:1.5b
```
#### 解决Ollama只能本地访问的问题
a. 编辑systemd服务配置添加环境变量OLLAMA_HOST=0.0.0.0和OLLAMA_ORIGINS=*。
```
sudo nano /etc/systemd/system/ollama.service
```
并在 `[Service]` 区块中添加:
```
Environment=OLLAMA_HOST=0.0.0.0
Environment=OLLAMA_ORIGINS=*
```
b. 重新加载systemd并重启Ollama服务
```
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl restart ollama
```