No description
- JavaScript 71.7%
- TypeScript 28.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .env.example | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
forgejo-mcp
Model Context Protocol server for Forgejo (also works with Gitea).
Tools
create_pull_request— open a PR against a repository.create_pr_comment— add a comment to a PR's conversation thread.
Configuration
Set these environment variables before launching the server:
| Variable | Description |
|---|---|
FORGEJO_URL |
Base URL of the Forgejo instance (e.g. https://codeberg.org) |
FORGEJO_TOKEN |
Personal access token with write:repository scope |
Install & build
bun install
bun run build
Run
FORGEJO_URL=https://codeberg.org FORGEJO_TOKEN=xxx bun run dev
MCP client config
{
"mcpServers": {
"forgejo": {
"command": "node",
"args": ["/absolute/path/to/forgejo-mcp/dist/index.js"],
"env": {
"FORGEJO_URL": "https://code.vilor.com",
"FORGEJO_TOKEN": "xxx"
}
}
}
}