Skip to content

Commit 048a742

Browse files
committed
Release version 4.0.0
1 parent 5ecd7b9 commit 048a742

File tree

6 files changed

+76
-76
lines changed

6 files changed

+76
-76
lines changed

DIR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ database-mcp-server/
2626
│ └── skanga/
2727
│ └── (test files)
2828
└── target/ # Build output (created by Maven)
29-
└── dbchat-3.0.6.jar # Executable JAR
29+
└── dbchat-4.0.0.jar # Executable JAR
3030
```
3131

3232
## Key Components

INSTALL.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DBChat uses Maven profiles to manage JDBC driver dependencies. This approach kee
4343
mvn clean package
4444
```
4545

46-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~15MB)
46+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~15MB)
4747

4848
#### Standard Databases Profile (`-P standard-databases`)
4949
**Additional drivers:**
@@ -56,7 +56,7 @@ mvn clean package
5656
mvn clean package -P standard-databases
5757
```
5858

59-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~25MB)
59+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~25MB)
6060

6161
#### Enterprise Databases Profile (`-P enterprise-databases`)
6262
**Additional drivers:**
@@ -69,7 +69,7 @@ mvn clean package -P standard-databases
6969
mvn clean package -P standard-databases,enterprise-databases
7070
```
7171

72-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~60MB)
72+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~60MB)
7373

7474
**Note:** Enterprise drivers require accepting additional licenses. Ensure compliance with vendor licensing terms.
7575

@@ -85,7 +85,7 @@ mvn clean package -P standard-databases,enterprise-databases
8585
mvn clean package -P standard-databases,cloud-analytics
8686
```
8787

88-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~80MB)
88+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~80MB)
8989

9090
#### Big Data Profile (`-P big-data`)
9191
**Additional drivers:**
@@ -99,14 +99,14 @@ mvn clean package -P standard-databases,cloud-analytics
9999
mvn clean package -P standard-databases,big-data
100100
```
101101

102-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~120MB)
102+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~120MB)
103103

104104
#### Complete Build (All Profiles)
105105
```bash
106106
mvn clean package -P standard-databases,enterprise-databases,cloud-analytics,big-data
107107
```
108108

109-
**Resulting JAR:** `target/dbchat-3.0.6.jar` (~400MB)
109+
**Resulting JAR:** `target/dbchat-4.0.0.jar` (~400MB)
110110

111111
### Custom Profile Combinations
112112

@@ -153,13 +153,13 @@ mvn clean package -P standard-databases,cloud-analytics
153153

154154
```bash
155155
# Check that the JAR file was created
156-
ls -la target/dbchat-3.0.6.jar
156+
ls -la target/dbchat-4.0.0.jar
157157

158158
# Check included drivers
159-
jar tf target/dbchat-3.0.6.jar | grep -E "\.(jar|class)" | grep -E "(mysql|postgres|oracle)"
159+
jar tf target/dbchat-4.0.0.jar | grep -E "\.(jar|class)" | grep -E "(mysql|postgres|oracle)"
160160

161161
# Quick test to see if it starts
162-
java -jar target/dbchat-3.0.6.jar
162+
java -jar target/dbchat-4.0.0.jar
163163

164164
Ctrl-C to stop it
165165
```
@@ -429,25 +429,25 @@ DBChat supports two transport modes for different deployment scenarios:
429429
#### stdio Development Mode
430430
```bash
431431
# Basic stdio mode
432-
java -jar target/dbchat-3.0.6.jar
432+
java -jar target/dbchat-4.0.0.jar
433433

434434
# Debug mode with detailed logging
435-
java -Dlogging.level.root=DEBUG -jar target/dbchat-3.0.6.jar
435+
java -Dlogging.level.root=DEBUG -jar target/dbchat-4.0.0.jar
436436

437437
# Test with manual input
438-
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | java -jar target/dbchat-3.0.6.jar
438+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | java -jar target/dbchat-4.0.0.jar
439439
```
440440

441441
#### HTTP Development Mode
442442
```bash
443443
# Basic HTTP mode
444-
java -jar target/dbchat-3.0.6.jar --http_mode=true
444+
java -jar target/dbchat-4.0.0.jar --http_mode=true
445445

446446
# Custom port with debug logging
447-
java -Dlogging.level.root=DEBUG -jar target/dbchat-3.0.6.jar --http_mode=true --http_port=9090
447+
java -Dlogging.level.root=DEBUG -jar target/dbchat-4.0.0.jar --http_mode=true --http_port=9090
448448

449449
# Production-like settings
450-
java -jar target/dbchat-3.0.6.jar \
450+
java -jar target/dbchat-4.0.0.jar \
451451
--http_mode=true \
452452
--http_port=8080 \
453453
--max_connections=50 \
@@ -508,13 +508,13 @@ HTTP_PORT=3001
508508
#### Usage:
509509
```bash
510510
# Use specific config file
511-
java -jar target/dbchat-3.0.6.jar --config_file=production.conf
511+
java -jar target/dbchat-4.0.0.jar --config_file=production.conf
512512

513513
# Override specific settings
514-
java -jar target/dbchat-3.0.6.jar --config_file=production.conf --http_port=9090
514+
java -jar target/dbchat-4.0.0.jar --config_file=production.conf --http_port=9090
515515

516516
# Multiple config files for different environments
517-
java -jar target/dbchat-3.0.6.jar --config_file=base.conf --config_file=env-specific.conf
517+
java -jar target/dbchat-4.0.0.jar --config_file=base.conf --config_file=env-specific.conf
518518
```
519519

520520
### Advanced Configuration Options
@@ -603,25 +603,25 @@ mvn verify -P integration-tests
603603
#### stdio Mode Testing
604604
```bash
605605
# Initialize protocol
606-
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | java -jar target/dbchat-3.0.6.jar
606+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | java -jar target/dbchat-4.0.0.jar
607607

608608
# Send initialized notification
609-
echo '{"jsonrpc":"2.0","method":"notifications/initialized"}' | java -jar target/dbchat-3.0.6.jar
609+
echo '{"jsonrpc":"2.0","method":"notifications/initialized"}' | java -jar target/dbchat-4.0.0.jar
610610

611611
# List tools
612-
echo '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' | java -jar target/dbchat-3.0.6.jar
612+
echo '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' | java -jar target/dbchat-4.0.0.jar
613613

614614
# Execute query
615-
echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"query","arguments":{"sql":"SELECT 1 as test","maxRows":1}}}' | java -jar target/dbchat-3.0.6.jar
615+
echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"query","arguments":{"sql":"SELECT 1 as test","maxRows":1}}}' | java -jar target/dbchat-4.0.0.jar
616616

617617
# List resources
618-
echo '{"jsonrpc":"2.0","id":4,"method":"resources/list","params":{}}' | java -jar target/dbchat-3.0.6.jar
618+
echo '{"jsonrpc":"2.0","id":4,"method":"resources/list","params":{}}' | java -jar target/dbchat-4.0.0.jar
619619
```
620620

621621
#### HTTP Mode Testing
622622
```bash
623623
# Start server
624-
java -jar target/dbchat-3.0.6.jar --http_mode=true &
624+
java -jar target/dbchat-4.0.0.jar --http_mode=true &
625625
SERVER_PID=$!
626626

627627
# Wait for startup
@@ -687,7 +687,7 @@ def test_stdio_mode():
687687
}
688688

689689
result = subprocess.run(
690-
["java", "-jar", "target/dbchat-3.0.6.jar"],
690+
["java", "-jar", "target/dbchat-4.0.0.jar"],
691691
input=json.dumps(init_request),
692692
text=True,
693693
capture_output=True
@@ -708,7 +708,7 @@ def test_http_mode():
708708

709709
# Start server
710710
process = subprocess.Popen([
711-
"java", "-jar", "target/dbchat-3.0.6.jar",
711+
"java", "-jar", "target/dbchat-4.0.0.jar",
712712
"--http_mode=true", "--http_port=8081"
713713
])
714714

@@ -760,13 +760,13 @@ echo "Testing DBChat build and functionality..."
760760
# Test basic build
761761
echo "Testing basic build..."
762762
mvn clean package -q
763-
test -f target/dbchat-3.0.6.jar || (echo "Build failed" && exit 1)
763+
test -f target/dbchat-4.0.0.jar || (echo "Build failed" && exit 1)
764764
echo "✓ Basic build successful"
765765

766766
# Test standard databases build
767767
echo "Testing standard databases build..."
768768
mvn clean package -P standard-databases -q
769-
test -f target/dbchat-3.0.6.jar || (echo "Standard build failed" && exit 1)
769+
test -f target/dbchat-4.0.0.jar || (echo "Standard build failed" && exit 1)
770770
echo "✓ Standard databases build successful"
771771

772772
# Test enterprise databases build (if available)
@@ -780,7 +780,7 @@ fi
780780
# Test basic functionality
781781
echo "Testing basic functionality..."
782782
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | \
783-
timeout 10s java -jar target/dbchat-3.0.6.jar > /dev/null || (echo "Functionality test failed" && exit 1)
783+
timeout 10s java -jar target/dbchat-4.0.0.jar > /dev/null || (echo "Functionality test failed" && exit 1)
784784
echo "✓ Basic functionality test passed"
785785

786786
echo "All tests completed successfully!"
@@ -797,7 +797,7 @@ FROM openjdk:17-jdk-slim
797797
WORKDIR /app
798798

799799
# Copy built JAR
800-
COPY target/dbchat-3.0.6.jar
800+
COPY target/dbchat-4.0.0.jar
801801

802802
# Create non-root user
803803
RUN useradd -m -u 1000 dbchat
@@ -884,7 +884,7 @@ RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
884884
RUN useradd -m -u 1000 dbchat
885885

886886
# Copy JAR from build stage
887-
COPY --from=build /app/target/dbchat-3.0.6.jar
887+
COPY --from=build /app/target/dbchat-4.0.0.jar
888888

889889
# Change ownership
890890
RUN chown dbchat:dbchat dbchat.jar
@@ -1016,7 +1016,7 @@ Create separate run configurations for different profiles:
10161016
### Local Development Deployment
10171017
```bash
10181018
# Quick development setup
1019-
java -jar target/dbchat-3.0.6.jar \
1019+
java -jar target/dbchat-4.0.0.jar \
10201020
--config_file=dev.conf \
10211021
--http_mode=true \
10221022
--http_port=3001
@@ -1025,7 +1025,7 @@ java -jar target/dbchat-3.0.6.jar \
10251025
### Staging Environment Deployment
10261026
```bash
10271027
# Staging with PostgreSQL
1028-
java -jar target/dbchat-3.0.6.jar \
1028+
java -jar target/dbchat-4.0.0.jar \
10291029
--config_file=staging.conf \
10301030
--http_mode=true \
10311031
--http_port=8080 \
@@ -1046,7 +1046,7 @@ Type=simple
10461046
User=dbchat
10471047
Group=dbchat
10481048
WorkingDirectory=/opt/dbchat
1049-
ExecStart=/usr/bin/java -jar /opt/dbchat/dbchat-3.0.6.jar --config_file=/etc/dbchat/production.conf
1049+
ExecStart=/usr/bin/java -jar /opt/dbchat/dbchat-4.0.0.jar --config_file=/etc/dbchat/production.conf
10501050
Restart=always
10511051
RestartSec=10
10521052
StandardOutput=journal
@@ -1077,7 +1077,7 @@ sudo mkdir -p /etc/dbchat
10771077
sudo mkdir -p /var/log/dbchat
10781078

10791079
# Copy files
1080-
sudo cp target/dbchat-3.0.6.jar /opt/dbchat/
1080+
sudo cp target/dbchat-4.0.0.jar /opt/dbchat/
10811081
sudo cp production.conf /etc/dbchat/
10821082
sudo cp dbchat.service /etc/systemd/system/
10831083

@@ -1191,10 +1191,10 @@ mvn clean install -U
11911191
#### JDBC Driver Issues
11921192
```bash
11931193
# Verify driver in JAR
1194-
jar tf target/dbchat-3.0.6.jar | grep -E "(mysql|postgres|oracle)"
1194+
jar tf target/dbchat-4.0.0.jar | grep -E "(mysql|postgres|oracle)"
11951195

11961196
# Test driver loading
1197-
java -cp target/dbchat-3.0.6.jar -e "Class.forName('com.mysql.cj.jdbc.Driver')"
1197+
java -cp target/dbchat-4.0.0.jar -e "Class.forName('com.mysql.cj.jdbc.Driver')"
11981198

11991199
# Check driver versions
12001200
mvn dependency:list | grep -E "(mysql|postgres|oracle)"
@@ -1205,27 +1205,27 @@ mvn dependency:list | grep -E "(mysql|postgres|oracle)"
12051205
#### Connection Problems
12061206
```bash
12071207
# Test database connectivity
1208-
java -cp target/dbchat-3.0.6.jar -e "
1208+
java -cp target/dbchat-4.0.0.jar -e "
12091209
import java.sql.*;
12101210
Connection conn = DriverManager.getConnection('$DB_URL', '$DB_USER', '$DB_PASSWORD');
12111211
System.out.println('Connection successful');
12121212
conn.close();
12131213
"
12141214

12151215
# Verify JDBC URL format
1216-
java -jar target/dbchat-3.0.6.jar --db_url="$DB_URL" --help
1216+
java -jar target/dbchat-4.0.0.jar --db_url="$DB_URL" --help
12171217
```
12181218

12191219
#### Memory Issues
12201220
```bash
12211221
# Monitor memory usage
1222-
java -Xmx512m -XX:+PrintGCDetails -jar target/dbchat-3.0.6.jar
1222+
java -Xmx512m -XX:+PrintGCDetails -jar target/dbchat-4.0.0.jar
12231223

12241224
# Profile memory allocation
1225-
java -XX:+UseG1GC -XX:+PrintGCApplicationStoppedTime -jar target/dbchat-3.0.6.jar
1225+
java -XX:+UseG1GC -XX:+PrintGCApplicationStoppedTime -jar target/dbchat-4.0.0.jar
12261226

12271227
# Enable heap dump on OOM
1228-
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -jar target/dbchat-3.0.6.jar
1228+
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -jar target/dbchat-4.0.0.jar
12291229
```
12301230

12311231
#### Performance Debugging
@@ -1235,10 +1235,10 @@ java -Dcom.sun.management.jmxremote \
12351235
-Dcom.sun.management.jmxremote.port=9999 \
12361236
-Dcom.sun.management.jmxremote.authenticate=false \
12371237
-Dcom.sun.management.jmxremote.ssl=false \
1238-
-jar target/dbchat-3.0.6.jar
1238+
-jar target/dbchat-4.0.0.jar
12391239

12401240
# Profile with async-profiler
1241-
java -jar target/dbchat-3.0.6.jar &
1241+
java -jar target/dbchat-4.0.0.jar &
12421242
PID=$!
12431243
./profiler.sh -d 30 -f profile.html $PID
12441244
```

0 commit comments

Comments
 (0)