Windsurf MCP Security Workflow for AI Editors
Review a legacy Windsurf MCP workflow, use the current Devin setup guide and keep tool access, scan evidence and retests scoped to your app.

On this page
For an app developed in Windsurf, review the application’s authorization, secrets, dependencies and release evidence independently of the editor. For current LyraShield AI onboarding, use the Devin MCP Marketplace guide: connect the remote server with OAuth, verify tool discovery and grant only the workflows and targets you intend to use.
Correction, September 12, 2026: This URL retains the legacy Windsurf workflow for existing readers. The supported client registry now routes that integration to Devin. Earlier instructions presented the old JSON path, environment placeholder and installer behavior as current. They are not a supported Devin setup. Existing heading links remain stable.
The vibe coding security guide explains the application controls this workflow reviews. An editor connection alone cannot establish OWASP Top 10 coverage. Tool discovery, an authorized scan and a retest are separate observations. The Model Context Protocol overview describes the transport; it does not give an agent permission to act on a repository.
1. Prerequisites and api key setup
Use the current Devin setup guide and Devin’s official MCP documentation. The hosted integration uses OAuth. Complete the browser flow, select the intended workspace and review the requested access. Do not paste a bearer key into a conversation or replace a failed OAuth flow with a broadly privileged credential.
Check the target before requesting a scan. A public URL, a repository and a localhost address have different access requirements and coverage. A hosted service cannot infer how to reach your laptop from a localhost URL. Use a supported target you own or are authorized to assess and retain the target identity with the result.
Record the client version and chosen transport. Local stdio describes communication between the client and MCP process; it does not promise that subsequent tool operations stay offline. Check the documented data flow before exposing source code, secrets or customer records to any tool.
2. Configure MCP server in windsurf config file
This heading is retained for old inbound links. For current Devin setup, open Settings → MCP Marketplace → Add Your Own, choose HTTP, enter https://app.lyrashieldai.com/api/mcp and select OAuth. Save the server and use Test listing tools. Devin’s UI is the supported configuration surface; do not create the historical Windsurf JSON file to configure it.
If you still use a legacy Windsurf installation, check that exact version’s vendor documentation before editing its configuration. Do not assume that a project-local file, an environment placeholder from another editor or an old installer identifier works. Prefer the maintained integration guide over a copied configuration fragment. Preserve existing server entries and keep credentials out of version control.
The connection should grant only the required workspace and workflows. Read-only discovery can work while a mutation remains outside the grant. A denied write is a permission result, not a reason to disable approval checks. Reconnect with the intended scope only after the user decides that scope is appropriate.
3. Verify the connection inside windsurf
For the supported Devin connection, first inspect Test listing tools. Then start a session and ask it to list the available LyraShield tools. A connection test establishes authentication and discovery at that moment. It does not prove that a scan ran, that a finding is valid or that a write is authorized.
If authentication fails, inspect the connection state and use the browser sign-in flow again. If the server times out, check the endpoint and permitted network path. Keep diagnostics redacted. Do not run a stdio server as an ordinary shell command and expect it to print a successful handshake without an MCP client sending protocol messages.
Start with a read-only operation and confirm the expected workspace. Before starting billable work, check target ownership, scan profile, eligibility and budget in the application. Keep each attempt’s returned scan identifier so a timeout does not lead to an accidental duplicate request. The integration troubleshooting guide covers connection failures separately from scan failures.
4. Run a security check inline while you code
With MCP connected, prompt agent to scan current target before committing. Name the authorized target, supported scan profile and expected evidence in the prompt. Ask for the returned scan identifier and terminal result; do not accept a prose claim that a scan ran.
Agent calls MCP tool and returns file, line, evidence snippet or reproduction notes and remediation pointers that reference OWASP Top 10. For injection it shows untrusted input flowing into query without validation. For secrets it shows detected key pattern in source. For supply chain it maps lock entries against OSV database.
LyraShield preserves each finding’s evidence state and supports a server-owned retest after the developer applies a fix. The MCP workflow can generate and record a fix proposal, but it does not create a branch or pull request. Poll the retest to a terminal state and include its outcome and scan reference in the PR. See NIST SSDF for verifiable remediation and CWE Top 25 for classification.
| Check type | What to scan | How to fix |
|---|---|---|
| Injection | API routes concatenating user input into queries | Parameterize queries, validate with schema, enforce allow lists at boundary |
| Secrets | Env example containing real keys, tokens in source | Remove secret, rotate credential, add precommit scan, use secret manager |
| Auth | Missing role check on sensitive routes, permissive CORS | Add auth middleware, test unauthenticated request, set secure cookie flags |
| Supply chain | Vulnerable npm packages with CVE in lockfile | Update lockfile, pin safe version, check OSV database advisory, limit scripts |
Use table as prompt template for consistent scans. Reference Windsurf security workflow for deeper checklist.
5. Wire the GitHub Action diff aware gate
Local checks improve speed, but team assurance needs CI gate scanning changed files on pull requests and publishing SARIF for triage. LyraShield provides GitHub Action that runs diff aware scan and uploads SARIF. Uses GitHub Actions and aligns with OWASP Top 10 pipeline guidance.
name: LyraShield Security Gate
on:
pull_request:
branches: [main]
jobs:
security:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
pull-requests: write
steps:
- name: Run LyraShield diff scan
uses: ecryptoguru/lyrashield-ai@v2
with:
fail_on_severity: HIGH
The runner-local Action needs no LyraShield API key. It emits and uploads SARIF but does not comment, open a branch or create a recorded hosted finding. Use Windsurf integration guide for authenticated MCP setup and NIST SSDF for build-integrity context.
6. Add agent rules for continuous guardrails
Keep a reviewed security checklist in the repository. Ask the active client to read it before making changes to user input, authorization, uploads, secrets or external requests. Instructions guide the agent; they do not enforce permissions or prove a scan ran.
Use the active client’s documented instruction location. The agent rules guide distinguishes client formats. A historical Windsurf rules path is not a Devin configuration path.
# Security guardrail
For any task involving user input, auth, file upload or secrets:
1. Call LyraShield MCP scan on target .
2. List findings with evidence states with file and CWE
3. Propose remediation with code edit
4. Ensure .env.example has placeholders only
5. Retest via LyraShield after fix
Test the checklist on a disposable change and inspect the actual tool result. If the agent skips a check, keep the result incomplete; a stronger prompt is not an enforced release gate. Keep the checklist short and committed. Pair with Windsurf security workflow and CWE Top 25 for taxonomy.
Why pair windsurf with LyraShield
Windsurf speeds AI development but can repeat patterns OWASP Top 10 warns about such as trusting generated SQL or leaving debug endpoints enabled. LyraShield adds verification without changing UX, exposing scan and findings as native tools agent knows how to call.
The current product ships MCP, bounded scans, findings and evidence, approval-gated fix proposals, retests, reports, SCA, secrets and the runner-local SARIF gate. The local Action is advisory and does not create hosted evidence states; use a recorded scan and retest when assurance evidence is required. Advisory dependency matches use OSV data and still require resolved-version review.
Local feedback plus CI gate creates defense in depth matching how AI apps evolve. For policy framing revisit vibe coding security guide and NIST SSDF.
Close loop by tracking findings as tasks, rerunning scans after fixes to confirm resolution and ensuring SARIF appears in GitHub code scanning with file and line mapping. Run AI app security checklist before launch to cover injection, auth, secrets, headers and supply chain in one pass.
When ready to centralize results across windsurf sessions and pull requests with dashboards and retention, create an account at LyraShield AI in the open beta. LyraShield is designed to grow with your windsurf workflow, bringing findings with evidence states, proposals requiring review and retest evidence into existing loop without claiming hands off merges.
Frequently asked
How does LyraShield MCP work with Windsurf?
It exposes scan targets findings with evidence states and fix guidance via MCP tools so the agent can request a security check inline without leaving the IDE.
Does this replace the GitHub Action gate?
No. IDE checks give fast feedback while the GitHub Action provides a diff aware merge gate with SARIF output for team review.
How do I authenticate the current Devin integration?
Use the remote HTTP endpoint with OAuth in Devin MCP Marketplace. Browser authorization binds the connection to the selected workspace and granted scope.
Should I copy the old Windsurf JSON into Devin?
No. The current supported Devin integration uses its MCP Marketplace UI. Legacy Windsurf paths and environment-variable syntax are not a Devin configuration contract.
Related posts
- Amp App Security Checklist
Practical checklist for Amp: scope orbs, MCP servers, skills and CI gates before shipping AI-built code to production.
- Amp MCP security workflow for agent scans
Set up LyraShield AI with Amp via MCP to scan changed code, verify findings and enforce a diff aware GitHub Action gate with SARIF.
- Claude Code MCP Agent Rules Security Setup
Configure LyraShield MCP with Claude Code agent rules to catch OWASP risks secrets and dependency issues across local and remote MCP