Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/claude-semcode-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Bigger ranges take longer, so it's better to just index what you need.

## Configuring MCP for Claude

claude plugins are the preferred way to configure things, but you can also
Claude Code plugins are the preferred way to configure things, but you can also
setup a json file with details about the MCP server. The documentation below
describes both.

Expand Down Expand Up @@ -65,7 +65,7 @@ For detailed information about tool approval methods and troubleshooting, see [.

### Configuring Claude via the --mcp-config command line option

If claude plugins aren't right for your configuration, passing the mcp config
If Claude Code plugins aren't right for your configuration, passing the mcp config
on the command line is also possible.

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@
"plugins": [
{
"name": "semcode",
"source": "./semcode",
"version": "1.0.0",
"description": "Semantic code search for C/C++ codebases with git-aware lookups, call graph analysis, and vector search",
"author": {
"name": "Semcode"
},
"homepage": "https://github.com/masoncl/semcode",
"source": "./plugin/semcode",
"mcpServers": [
"./mcp/semcode.json"
]
"keywords": ["c", "cpp", "code-search", "semantic-search", "call-graph", "git-integration"]
}
]
}
17 changes: 10 additions & 7 deletions plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ semcode-index --source .

# 4. Install plugin
cd /path/to/semcode
claude plugin marketplace add $(pwd)/plugin/marketplace.json
claude plugin marketplace add $(pwd)/plugin
claude plugin install semcode@semcode-local

# 5. Restart Claude and verify
Expand All @@ -33,14 +33,17 @@ claude plugin install semcode@semcode-local

```
plugin/
├── README.md # This file
├── marketplace.json # Plugin marketplace manifest
└── semcode/ # Plugin implementation
├── README.md # Full installation and usage guide
├── .claude-plugin/
│ └── marketplace.json # Plugin marketplace manifest
├── README.md # This file
└── semcode/ # Plugin implementation
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── .mcp.json # MCP server configuration
├── README.md # Full installation and usage guide
├── TOOL_APPROVAL.md
├── approve-tools.sh
├── install.sh
└── mcp/ # MCP server configuration
└── install.sh
```

## Documentation
Expand Down
9 changes: 9 additions & 0 deletions plugin/semcode/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "semcode",
"description": "Semantic code search for C/C++ codebases with git-aware lookups, call graph analysis, and vector search capabilities",
"version": "1.0.0",
"author": {
"name": "Semcode"
},
"license": "MIT OR Apache-2.0"
}
7 changes: 7 additions & 0 deletions plugin/semcode/.mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semcode": {
"command": "semcode-mcp",
"args": [],
"env": {}
}
}
15 changes: 6 additions & 9 deletions plugin/semcode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This creates a `.semcode.db` directory in your codebase.
```bash
# Add the marketplace
cd /path/to/semcode
claude plugin marketplace add $(pwd)/plugin/marketplace.json
claude plugin marketplace add $(pwd)/plugin

# Install the plugin
claude plugin install semcode@semcode-local
Expand Down Expand Up @@ -62,17 +62,14 @@ claude # Uses /path/to/another-project/.semcode.db

### Optional: Fixed Database Path

To always use the same database, edit `plugin/semcode/mcp/semcode.json`:
To always use the same database, edit `plugin/semcode/.mcp.json`:

```json
{
"mcpServers": {
"semcode": {
"type": "stdio",
"command": "semcode-mcp",
"args": ["--database", "/absolute/path/to/your/codebase"],
"env": {}
}
"semcode": {
"command": "semcode-mcp",
"args": ["--database", "/absolute/path/to/your/codebase"],
"env": {}
}
}
```
Expand Down
27 changes: 0 additions & 27 deletions plugin/semcode/claude_plugin.json

This file was deleted.

29 changes: 11 additions & 18 deletions plugin/semcode/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ echo

# Step 1: Add marketplace
echo "Step 1: Adding marketplace to Claude..."
if claude plugin marketplace add "$PLUGIN_DIR/marketplace.json"; then
if claude plugin marketplace add "$PLUGIN_DIR"; then
echo "✓ Marketplace added successfully"
else
echo "⚠ Warning: Marketplace may already be added (this is OK)"
Expand Down Expand Up @@ -98,40 +98,33 @@ case $choice in
esac

# Update MCP configuration if database path is provided
MCP_CONFIG="$SCRIPT_DIR/.mcp.json"
if [ -n "$DB_PATH" ]; then
MCP_CONFIG="$SCRIPT_DIR/mcp/semcode.json"
echo
echo "Updating MCP configuration at: $MCP_CONFIG"

# Create new config with database path
cat > "$MCP_CONFIG" << EOF
{
"mcpServers": {
"semcode": {
"type": "stdio",
"command": "$MCP_BINARY",
"args": ["--database", "$DB_PATH"],
"env": {}
}
"semcode": {
"command": "$MCP_BINARY",
"args": ["--database", "$DB_PATH"],
"env": {}
}
}
EOF
echo "✓ Configuration updated"
else
# No database path specified, create config without --database arg
MCP_CONFIG="$SCRIPT_DIR/mcp/semcode.json"
echo
echo "Creating MCP configuration without database path: $MCP_CONFIG"

cat > "$MCP_CONFIG" << EOF
{
"mcpServers": {
"semcode": {
"type": "stdio",
"command": "$MCP_BINARY",
"args": [],
"env": {}
}
"semcode": {
"command": "$MCP_BINARY",
"args": [],
"env": {}
}
}
EOF
Expand Down Expand Up @@ -223,7 +216,7 @@ echo "For usage examples and tool reference, see:"
echo " $SCRIPT_DIR/../../docs/semcode-mcp.md"
echo
echo "To reconfigure the database path, edit:"
echo " $SCRIPT_DIR/mcp/semcode.json"
echo " $SCRIPT_DIR/.mcp.json"
echo
echo "To pre-approve tools for additional directories:"
echo " $SCRIPT_DIR/approve-tools.sh /path/to/directory"
Expand Down
85 changes: 0 additions & 85 deletions plugin/semcode/mcp/config.md

This file was deleted.

10 changes: 0 additions & 10 deletions plugin/semcode/mcp/semcode.json

This file was deleted.