BLOG-296 Add MCP configuration and setup instructions (#297)
All checks were successful
Frontend CI / build (push) Successful in 58s
All checks were successful
Frontend CI / build (push) Successful in 58s
### Description This PR configures and registers MCP (Model Context Protocol) servers to enhance AI-assisted development workflow, corrects a typo in the PR template, and documents the setup instructions in `README.md`. Specifically, the following changes are introduced: - **MCP Configuration**: Created `.agents/mcp_config.json` to register MCP servers for `gitea`, `svelte`, and `cratesio` domains. - **Documentation**: Updated `README.md` with step-by-step instructions to set up the Go environment, install `cratesio-mcp`, and configure the Gitea access token. - **Template Correction**: Corrected a typo in `.gitea/PULL_REQUEST_TEMPLATE.yaml`. - **Git Ignore**: Added `.antigravitycli` directory to `.gitignore` to prevent tracking of local CLI configurations. ### Package Changes _No response_ ### Screenshots _No response_ ### Reference Resolves #296. ### Checklist - [x] A milestone is set - [x] The related issues has been linked to this branch Reviewed-on: #297 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
This commit was merged in pull request #297.
This commit is contained in:
18
.agents/mcp_config.json
Normal file
18
.agents/mcp_config.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"gitea": {
|
||||
"command": "go",
|
||||
"args": ["run", "gitea.com/gitea/gitea-mcp@latest", "-t", "stdio"],
|
||||
"env": {
|
||||
"GITEA_HOST": "https://git.squidspirit.com"
|
||||
}
|
||||
},
|
||||
"svelte": {
|
||||
"command": "bunx",
|
||||
"args": ["-y", "@sveltejs/mcp"]
|
||||
},
|
||||
"cratesio": {
|
||||
"command": "cratesio-mcp"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,4 +34,4 @@ body:
|
||||
label: Checklist
|
||||
options:
|
||||
- label: A milestone is set
|
||||
- label: The related issuse has been linked to this branch
|
||||
- label: The related issues has been linked to this branch
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
.env
|
||||
.DS_Store
|
||||
|
||||
.antigravitycli
|
||||
|
||||
20
README.md
20
README.md
@@ -75,6 +75,26 @@ To set up the entire project:
|
||||
4. Set up frontend (see [frontend/README.md](./frontend/README.md))
|
||||
5. Start both servers for full-stack development
|
||||
|
||||
### MCP Server Setup
|
||||
|
||||
To configure and run the MCP (Model Context Protocol) servers for AI-assisted development:
|
||||
|
||||
1. **Install Go**: Ensure Go is installed on your system to run Go-based MCP servers (such as the Gitea MCP server).
|
||||
|
||||
2. **Install Bun**: Ensure Bun is installed on your system to run Svelte-based MCP servers (such as the Svelte MCP server via `bunx`).
|
||||
|
||||
3. **Install crates.io MCP**: Install `cratesio-mcp` using Cargo:
|
||||
|
||||
```bash
|
||||
cargo install cratesio-mcp
|
||||
```
|
||||
|
||||
4. **Configure Environment Variables**: Export your Gitea access token:
|
||||
|
||||
```bash
|
||||
export GITEA_ACCESS_TOKEN="your_gitea_access_token_here"
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project uses a combination of the [MIT License and a custom license](./LICENSE.md). Based on the MIT License, anyone is permitted to use the code. However, before deploying the code, they must first replace any information belonging to "me" or any content that could identify "me," such as logos, names, and "about me" sections.
|
||||
|
||||
Reference in New Issue
Block a user