agent-gate-installer 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/install.mjs +17 -0
  2. package/package.json +1 -1
package/bin/install.mjs CHANGED
@@ -132,6 +132,21 @@ function registerMcpServer(settings, venvPython) {
132
132
  log(" + Registered agent-gate MCP server");
133
133
  }
134
134
 
135
+ function writeMcpConfigFile(venvPython) {
136
+ const mcpConfigPath = join("/tmp", "agent-gate-mcp-config.json");
137
+ const config = {
138
+ mcpServers: {
139
+ "agent-gate": {
140
+ type: "stdio",
141
+ command: venvPython,
142
+ args: [join(INSTALL_DIR, "src", "agent_gate", "server.py")],
143
+ },
144
+ },
145
+ };
146
+ writeFileSync(mcpConfigPath, JSON.stringify(config, null, 4) + "\n", "utf8");
147
+ log(` + Wrote ${mcpConfigPath}`);
148
+ }
149
+
135
150
  async function promptForToken() {
136
151
  const readline = createInterface({ input: process.stdin, output: process.stdout });
137
152
  return new Promise((resolve) => {
@@ -221,6 +236,8 @@ async function install() {
221
236
  registerMcpServer(settings, venvPython);
222
237
  writeSettings(settings);
223
238
 
239
+ writeMcpConfigFile(venvPython);
240
+
224
241
  log(" + Verifying installation...");
225
242
  try {
226
243
  run(`"${venvPython}" -c "from agent_gate.server import create_mcp; print('OK')"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-gate-installer",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "One-command installer for agent-gate prompt evaluation gate",
5
5
  "type": "module",
6
6
  "bin": {