https://promptfoo.dev/ logo
Deterministic tests
# 💬|general
g
Hi, I'm working on a compliance-check agent that scans docs, redacts sensitive info, and emails results. I need deterministic tests (fake email & storage) so I don’t leak real data while dev’ing. Anyone using MCP mocks or promptfoo configs for this?
i
Seems like a reasonable use case. What does your test setup look like?
g
right now it's vitest on the dev enviroment with a bunch of custom mock test- but it doesn't really capture the use of the mcp servers and I can't go through writing entire mocks for the servers
i
So just to make sure I understand, your application is an MCP client that talks with a bunch of servers. You want to run tests on the application itself but mock out the server responses underneath
g
Yes
🙂
the agent is the client
i
Got it. Promptfoo doesn't mock out the underlying MCP servers. I'm not aware of a solution that would do that for you I think you may have to implement those mocks yourself and use them during testing
g
got it
how do you do ci cd for agents?
i
usualy we use a python provider as the target to hook into the agent https://www.promptfoo.dev/docs/providers/python/
5 Views