- Open Cursor AI
- Press
Cmd/Ctrl + Shift + P - Type "Configure MCP Server"
- Enter configuration:
{
"command": "dotnet",
"args": ["run", "--project", "path/to/NetContextServer/src/NetContextServer/NetContextServer.csproj"]
}Test the integration directly in Cursor AI's chat interface by asking questions like:
-
Basic file operations:
- "What's the current base directory?"
- "List all projects in this solution"
- "Show me the source files in this project"
-
Search capabilities:
- "Search for files containing 'Program'"
- "Find code related to authentication"
- "Look for error handling implementations"
-
Package analysis:
- "Analyze the NuGet packages in this project"
- "Show me all project dependencies"
The AI assistant will use NetContextServer's capabilities to answer these questions directly in the chat.
NetContextServer implements the Model Context Protocol for AI tool integration.
- File system navigation
- Code search (text and semantic)
- Project structure analysis
- Package analysis
- Pattern management
- All operations respect base directory restrictions
- Sensitive file patterns are automatically ignored
- File size limits are enforced
CursorMCPMonitor provides real-time monitoring of MCP communications.
- Installation:
git clone https://github.com/willibrandon/CursorMCPMonitor.git
cd CursorMCPMonitor
dotnet build- Usage:
dotnet run --project CursorMCPMonitor.csproj-
Connection Failed
- Verify NetContextServer is running
- Check port availability
- Confirm path configuration
-
Permission Errors
- Verify base directory setting
- Check file access permissions
- Review ignore patterns
-
Search Not Working
- Confirm Azure OpenAI setup (if using semantic search)
- Verify file indexing status
NetContextServer can integrate with any tool supporting the MCP protocol. Key requirements:
-
Tool Requirements
- MCP protocol support
- .NET file system compatibility
- Base directory respect
-
Configuration Steps
- Point tool to NetContextServer endpoint
- Configure authentication (if required)
- Set up base directory