Overview
Windsurf is an AI-powered code editor that supports MCP tools. Connect your Pylar tools to Windsurf to give the AI assistant access to your data through governed views while coding.Prerequisites
- ✅ Windsurf editor installed
- ✅ Pylar project with published MCP tools
- ✅ MCP HTTP Stream URL and Bearer Token from Pylar
Step 1: Get Your Pylar Credentials
- In Pylar, navigate to your project
- Click “Publish” in the right sidebar
- Generate your token if needed
- Copy both:
- MCP HTTP Stream URL:
https://mcp.publish.pylar.ai/mcp - Authorization Bearer Token: Your unique token
- MCP HTTP Stream URL:
Step 2: Open Windsurf Command Palette
- Open Windsurf
- Press the keyboard shortcut:
- Mac:
Cmd + Shift + P - Windows/Linux:
Ctrl + Shift + P
- Mac:
- Type and select: “Windsurf: Open MCP Configuration”
Step 3: Add Your MCP Server Configuration
Inside the JSON file, add a new entry under"mcpServers":
- Replace
xxxxxwith your actual Bearer Token from Pylar - The name
"view-mcp-node"is a local alias—you can rename it to anything you prefer - If the
"headers"key is unsupported in your Windsurf build, omit it and use a proxy or environment variable instead
The config file location may vary. Windsurf will create it if it doesn’t exist when you open the MCP Configuration.
Step 4: Save and Reload MCP Servers
- Save the
mcp_config.jsonfile - Back in Windsurf, open the command palette again:
- Mac:
Cmd + Shift + P - Windows/Linux:
Ctrl + Shift + P
- Mac:
- Run: “Windsurf: Reload MCP Servers”
view-mcp-node).
If you see the success toast and your MCP server appears in the sidebar, the connection is successful!
Step 5: Test the MCP Tools
- Go to the chat in Windsurf
- Write a question that requires the agent to use the MCP tool
- Recognize it needs to use your Pylar tool
- Call the tool with appropriate parameters
- Execute the query and return results
- Use the data to answer your question
Using Your Tools in Windsurf
Once connected, you can use Pylar tools while coding:- Ask questions about your data
- Have the AI use tools to retrieve information
- Build applications with real data from your views
- Get insights while coding
Troubleshooting
Issue: MCP server not appearing
Solutions:- Verify the JSON syntax is correct
- Check that you saved the config file
- Ensure you ran “Reload MCP Servers” command
- Verify Bearer Token is correct
- Check Windsurf version supports MCP
Issue: Headers not supported
If headers are unsupported in your Windsurf build: Alternative Solutions:- Use a proxy server to add authentication
- Set authentication via environment variables
- Check for Windsurf updates
Issue: Tools not working
Solutions:- Verify tools are published in Pylar
- Check tool names match exactly
- Review error messages in Windsurf
- Test tools in Pylar first
Benefits
- ✅ AI-Powered Coding: Access your data while coding
- ✅ Natural Language: Ask questions in plain English
- ✅ Secure Access: Through governed views only
- ✅ Automatic Updates: View changes reflect immediately
- ✅ Full Control: Manage everything from Pylar
Next Steps
- Publishing Tools - Publish your tools
- Evals - Monitor tool usage
- Other Builders - Connect to other platforms