MCP and LSP
Configure Wysna MCP tools and connect an editor over LSP.
Start Wysna’s stdio Model Context Protocol server with the project root.
wysna mcp --root .{ "mcpServers": { "wysna": { "command": "wysna", "args": ["mcp", "--root", "."] } }}Use wysna_check to type-check code, retrieve safety_facts (wysna.safety-facts/1), and optionally enforce allow_capabilities / deny_capabilities (W5006). Use wysna_graph to query impact or architecture roles, wysna_inspect to inspect several symbols, and wysna_patch for checked edits. wysna_project_check validates the target and any architecture rules. wysna_project_test lists or executes test cases.
Use --allow-exec when starting MCP if your agent needs to run project tests. Listing tests remains available with a read-only session.
Run wysna lsp to connect an editor. The official VS Code extension includes syntax highlighting (1.1), navigation, diagnostics, Wysna: Check Safety Facts (wysna.checkSafetyFacts), and the project impact command. VS Code.