Initial commit
Some checks failed
ai-reviews / review (pull_request) Failing after 6m45s

This commit is contained in:
2025-11-18 13:28:56 +00:00
commit ac3a18bb6b
5 changed files with 146 additions and 0 deletions

62
README.md Normal file
View File

@@ -0,0 +1,62 @@
# 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
```