Skip to content

Commit ec4b4a2

Browse files
committed
feat: ✨ Fix hell for server.py and CLAUDE.md, because it's a no-brainer what changed here (see .cursorr...
Oh wait, I was too lazy to actually read the diff, but it looks like I had to manually update all those rules so they don't conflict with the new wind surfer language syntax in windsurfrules. What a shock,
1 parent a8f6de8 commit ec4b4a2

File tree

6 files changed

+27
-375
lines changed

6 files changed

+27
-375
lines changed

.cursorrules

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When updating rules:
1313

1414
## System Requirements
1515

16-
### Elasticsearch API Access (Recommended)
17-
The server can directly access the NixOS Elasticsearch API for optimal performance:
16+
### Elasticsearch API Access (Required)
17+
The server requires access to the NixOS Elasticsearch API to function:
1818

1919
1. Create a `.env` file with your NixOS Elasticsearch credentials:
2020
```
@@ -28,19 +28,7 @@ ELASTICSEARCH_PASSWORD=your_password
2828
python mcp_diagnose.py --es-only
2929
```
3030

31-
### Nix Channels (Fallback)
32-
As a fallback, the server can use local Nix channels:
33-
- `nixpkgs` (pointing to nixpkgs-unstable)
34-
- `nixpkgs-unstable`
35-
36-
Add them with:
37-
```bash
38-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
39-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
40-
nix-channel --update
41-
```
42-
43-
These channels allow the server to access package information when Elasticsearch is unavailable. The server will verify these channels on startup and warn if any are missing.
31+
Without valid Elasticsearch credentials, the server will start but will not be able to search packages or provide metadata.
4432

4533
## Build & Run Commands
4634

.goosehints

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When updating rules:
1313

1414
## System Requirements
1515

16-
### Elasticsearch API Access (Recommended)
17-
The server can directly access the NixOS Elasticsearch API for optimal performance:
16+
### Elasticsearch API Access (Required)
17+
The server requires access to the NixOS Elasticsearch API to function:
1818

1919
1. Create a `.env` file with your NixOS Elasticsearch credentials:
2020
```
@@ -28,19 +28,7 @@ ELASTICSEARCH_PASSWORD=your_password
2828
python mcp_diagnose.py --es-only
2929
```
3030

31-
### Nix Channels (Fallback)
32-
As a fallback, the server can use local Nix channels:
33-
- `nixpkgs` (pointing to nixpkgs-unstable)
34-
- `nixpkgs-unstable`
35-
36-
Add them with:
37-
```bash
38-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
39-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
40-
nix-channel --update
41-
```
42-
43-
These channels allow the server to access package information when Elasticsearch is unavailable. The server will verify these channels on startup and warn if any are missing.
31+
Without valid Elasticsearch credentials, the server will start but will not be able to search packages or provide metadata.
4432

4533
## Build & Run Commands
4634

.windsurfrules

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When updating rules:
1313

1414
## System Requirements
1515

16-
### Elasticsearch API Access (Recommended)
17-
The server can directly access the NixOS Elasticsearch API for optimal performance:
16+
### Elasticsearch API Access (Required)
17+
The server requires access to the NixOS Elasticsearch API to function:
1818

1919
1. Create a `.env` file with your NixOS Elasticsearch credentials:
2020
```
@@ -28,19 +28,7 @@ ELASTICSEARCH_PASSWORD=your_password
2828
python mcp_diagnose.py --es-only
2929
```
3030

31-
### Nix Channels (Fallback)
32-
As a fallback, the server can use local Nix channels:
33-
- `nixpkgs` (pointing to nixpkgs-unstable)
34-
- `nixpkgs-unstable`
35-
36-
Add them with:
37-
```bash
38-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
39-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
40-
nix-channel --update
41-
```
42-
43-
These channels allow the server to access package information when Elasticsearch is unavailable. The server will verify these channels on startup and warn if any are missing.
31+
Without valid Elasticsearch credentials, the server will start but will not be able to search packages or provide metadata.
4432

4533
## Build & Run Commands
4634

CLAUDE.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When updating rules:
1313

1414
## System Requirements
1515

16-
### Elasticsearch API Access (Recommended)
17-
The server can directly access the NixOS Elasticsearch API for optimal performance:
16+
### Elasticsearch API Access (Required)
17+
The server requires access to the NixOS Elasticsearch API to function:
1818

1919
1. Create a `.env` file with your NixOS Elasticsearch credentials:
2020
```
@@ -28,19 +28,7 @@ ELASTICSEARCH_PASSWORD=your_password
2828
python mcp_diagnose.py --es-only
2929
```
3030

31-
### Nix Channels (Fallback)
32-
As a fallback, the server can use local Nix channels:
33-
- `nixpkgs` (pointing to nixpkgs-unstable)
34-
- `nixpkgs-unstable`
35-
36-
Add them with:
37-
```bash
38-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
39-
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
40-
nix-channel --update
41-
```
42-
43-
These channels allow the server to access package information when Elasticsearch is unavailable. The server will verify these channels on startup and warn if any are missing.
31+
Without valid Elasticsearch credentials, the server will start but will not be able to search packages or provide metadata.
4432

4533
## Build & Run Commands
4634

flake.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,8 @@
281281
command = ''
282282
echo "Running tests in debug mode..."
283283
source .venv/bin/activate
284-
# Run with debug flag to trigger special debug mode
285-
python -m pytest -xvs test_mcp.py::test_debug
286-
# If test_debug doesn't exist, fall back to regular debug mode
287-
if [ $? -ne 0 ]; then
288-
python -u test_mcp.py --debug
289-
fi
284+
# Run the test script directly with the debug flag
285+
python -u test_mcp.py --debug
290286
'';
291287
}
292288
{

0 commit comments

Comments
 (0)