generate-tests

基于代码变更生成单元测试代码,支持多种测试场景。\n\n

Server Frontend Test Generation & Code Review MCP Server northseacoder/fe-testgen-mcp
Category Write
Risk class Medium
Parameters 00 required

What generate-tests does on Frontend Test Generation & Code Review MCP Server

AI agents use generate-tests to create or update resources in Frontend Test Generation & Code Review MCP Server — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Frontend Test Generation & Code Review MCP Server environment.

Why generate-tests needs a policy

This tool creates or modifies test code files, which is reversible and fits the Write category. While it generates code, it specifically targets test files rather than production code, and the generated tests can be edited, deleted, or regenerated.

From the tool's definition The tool description states it generates unit test code based on code changes ("基于代码变更生成单元测试代码"). The English translation of the Chinese text is: 'Generate unit test code based on code changes, supporting multiple test scenarios.' This is a code generation…

Questions about generate-tests

What does the generate-tests tool do? +

基于代码变更生成单元测试代码,支持多种测试场景。\n\n. It is categorised as a Write tool in the Frontend Test Generation & Code Review MCP Server MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on generate-tests? +

Register the Frontend Test Generation & Code Review MCP Server MCP server in PolicyLayer and add a rule for generate-tests: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Frontend Test Generation & Code Review MCP Server. Nothing to install.

What risk level is generate-tests? +

generate-tests is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit generate-tests? +

Yes. Add a rate_limit block to the generate-tests rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block generate-tests completely? +

Set action: deny in the PolicyLayer policy for generate-tests. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides generate-tests? +

generate-tests is provided by the Frontend Test Generation & Code Review MCP Server MCP server (northseacoder/fe-testgen-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.