Skip to content

Commit b6e54a9

Browse files
committed
fix: add ci to the repo
1 parent afb68a9 commit b6e54a9

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

Makefile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test coverage coverage-html clean mcp-coverage mcp-coverage-html
1+
.PHONY: test coverage coverage-html clean mcp-coverage mcp-coverage-html lint lint-fix build ci-setup
22

33
# Test all packages
44
test:
@@ -35,3 +35,26 @@ test-all: clean test-race coverage coverage-html
3535

3636
# Run MCP tests and generate coverage report
3737
mcp-test-all: clean mcp-coverage mcp-coverage-html
38+
39+
# Build the server binary
40+
build:
41+
go build -o sqlite-mcp-server ./cmd/server
42+
43+
# Run golangci-lint
44+
lint:
45+
golangci-lint run
46+
47+
# Run golangci-lint with auto-fix
48+
lint-fix:
49+
golangci-lint run --fix
50+
51+
# Setup CI dependencies (install golangci-lint locally)
52+
ci-setup:
53+
@which golangci-lint > /dev/null || (echo "Installing golangci-lint..." && go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest)
54+
55+
# Run all CI checks locally
56+
ci-local: ci-setup lint test-race coverage
57+
58+
# Clean everything including build artifacts
59+
clean-all: clean
60+
rm -f sqlite-mcp-server

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SQLite MCP (Model Context Protocol) Server
22

3+
[![CI](https://github.com/nipunap/sqlite-mcp-server/actions/workflows/ci.yml/badge.svg)](https://github.com/nipunap/sqlite-mcp-server/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/nipunap/sqlite-mcp-server/branch/main/graph/badge.svg)](https://codecov.io/gh/nipunap/sqlite-mcp-server)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/nipunap/sqlite-mcp-server)](https://goreportcard.com/report/github.com/nipunap/sqlite-mcp-server)
6+
37
A server-side implementation of the Model Context Protocol (MCP) for SQLite databases, enabling AI applications to interact with **multiple SQLite databases** through a standardized protocol. Each database must be registered before use, allowing dynamic database management and multi-database operations.
48

59
## Project Structure

go.mod

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@ module github.com/nipunap/sqlite-mcp-server
33
go 1.24.5
44

55
require (
6-
github.com/golang-jwt/jwt/v5 v5.3.0
76
github.com/google/uuid v1.6.0
8-
github.com/graphql-go/graphql v0.8.1
97
github.com/mattn/go-sqlite3 v1.14.32
10-
golang.org/x/crypto v0.41.0
11-
)
12-
13-
require (
14-
github.com/google/jsonschema-go v0.2.1-0.20250825175020-748c325cec76 // indirect
15-
github.com/modelcontextprotocol/go-sdk v0.3.1 // indirect
16-
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
178
)

go.sum

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo=
2-
github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
3-
github.com/google/jsonschema-go v0.2.1-0.20250825175020-748c325cec76 h1:mBlBwtDebdDYr+zdop8N62a44g+Nbv7o2KjWyS1deR4=
4-
github.com/google/jsonschema-go v0.2.1-0.20250825175020-748c325cec76/go.mod h1:r5quNTdLOYEz95Ru18zA0ydNbBuYoo9tgaYcxEYhJVE=
51
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
62
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
7-
github.com/graphql-go/graphql v0.8.1 h1:p7/Ou/WpmulocJeEx7wjQy611rtXGQaAcXGqanuMMgc=
8-
github.com/graphql-go/graphql v0.8.1/go.mod h1:nKiHzRM0qopJEwCITUuIsxk9PlVlwIiiI8pnJEhordQ=
93
github.com/mattn/go-sqlite3 v1.14.32 h1:JD12Ag3oLy1zQA+BNn74xRgaBbdhbNIDYvQUEuuErjs=
104
github.com/mattn/go-sqlite3 v1.14.32/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
11-
github.com/modelcontextprotocol/go-sdk v0.3.1 h1:0z04yIPlSwTluuelCBaL+wUag4YeflIU2Fr4Icb7M+o=
12-
github.com/modelcontextprotocol/go-sdk v0.3.1/go.mod h1:whv0wHnsTphwq7CTiKYHkLtwLC06WMoY2KpO+RB9yXQ=
13-
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
14-
github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4=
15-
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
16-
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=

0 commit comments

Comments
 (0)