Skip to content

Commit 4687a05

Browse files
fix claude script
1 parent a153367 commit 4687a05

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/bin/bash
22

3-
# Run script for Claude MCP integration
4-
# This script is called by Claude to start the MCP server
3+
# Add the NucliaDB MCP server to Claude Code
4+
# This allows Claude Code to interact with NucliaDB via the Model Context Protocol
55

6-
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
# Get the absolute path to the project directory
7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
PROJECT_PATH="$SCRIPT_DIR/NucliaDbClient.McpServer.csproj"
79

8-
# Set environment variable for NucliaDB URL
9-
export NUCLIA_BASE_URL="http://localhost:8080/api/v1"
10+
# Add the MCP server to Claude Code configuration
11+
claude mcp add nuclia-db dotnet run --project "$PROJECT_PATH" --env NUCLIA_BASE_URL=http://localhost:8080/api/v1
1012

11-
# Run the MCP server
12-
cd "$SCRIPT_DIR"
13-
exec dotnet run --no-build
13+
echo "NucliaDB MCP server added to Claude Code!"
14+
echo ""
15+
echo "Make sure NucliaDB is running before using the MCP tools:"
16+
echo " cd $SCRIPT_DIR && ./start-mcp-server.sh"
17+
echo ""
18+
echo "You can verify the server is configured by running:"
19+
echo " claude-code mcp list"

0 commit comments

Comments
 (0)