Commit a4add76
Fix markdown injection and platform-dependent path tests in prompt handlers
- Add sanitizeForInlineCode() helper to escape backticks and newlines in user-supplied values embedded in markdown code spans
- Apply sanitizer to resolvePromptFilePath 'does not exist' warning (filePath and absolutePath)
- Apply sanitizer to formatValidationError issue.received display
- Fix POSIX path separator assumptions in tests: use basename only ('mydb', 'database')
- Rename createSafePromptHandler tests to clarify they validate the handler wrapper, not MCP SDK validation
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/2660567b-5822-4505-91c2-37fe3ef00f4e1 parent 214d088 commit a4add76
File tree
4 files changed
+23
-10
lines changed- server
- dist
- src/prompts
- test/src/prompts
4 files changed
+23
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64468 | 64468 | | |
64469 | 64469 | | |
64470 | 64470 | | |
| 64471 | + | |
| 64472 | + | |
| 64473 | + | |
64471 | 64474 | | |
64472 | 64475 | | |
64473 | 64476 | | |
| |||
64503 | 64506 | | |
64504 | 64507 | | |
64505 | 64508 | | |
64506 | | - | |
| 64509 | + | |
64507 | 64510 | | |
64508 | 64511 | | |
64509 | 64512 | | |
| |||
64599 | 64602 | | |
64600 | 64603 | | |
64601 | 64604 | | |
64602 | | - | |
| 64605 | + | |
64603 | 64606 | | |
64604 | 64607 | | |
64605 | 64608 | | |
| |||
0 commit comments