Merge pull request #10 from Pet3cy/security-fix-sensitive-data-exposure-logs-8322086360319645856

🔒 [security fix] Fix sensitive data exposure in MCP Inference logs
This commit is contained in:
Pet3cy
2026-02-24 18:42:50 +01:00
committed by GitHub
6 changed files with 25 additions and 27 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ describe('inference.ts', () => {
expect(result).toBe('Hello, user!')
expect(core.info).toHaveBeenCalledWith('Running simple inference without tools')
expect(core.info).toHaveBeenCalledWith('Model response: Hello, user!')
expect(core.debug).toHaveBeenCalledWith('Model response: Hello, user!')
// Verify the request structure
expect(mockCreate).toHaveBeenCalledWith({
@@ -136,7 +136,7 @@ describe('inference.ts', () => {
const result = await simpleInference(mockRequest)
expect(result).toBeNull()
expect(core.info).toHaveBeenCalledWith('Model response: No response content')
expect(core.debug).toHaveBeenCalledWith('Model response: No response content')
})
it('includes response format when specified', async () => {