File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Samples/NucliaDbClient.McpServer Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments