replicas-mcp 0.2.8 → 0.2.10
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.
- package/dist/index.js +321 -7680
- package/package.json +1 -2
- package/src/index.ts +12 -4
- package/tsup.config.ts +0 -6
- package/dist/bowser-QNXG5MCF.js +0 -2822
- package/dist/chunk-6PZSQLNC.js +0 -436
- package/dist/chunk-B7L4ZPGB.js +0 -1052
- package/dist/chunk-FYYO2R33.js +0 -576
- package/dist/chunk-IFQZRTNU.js +0 -1491
- package/dist/chunk-IKBVWGNN.js +0 -3140
- package/dist/chunk-PMRETU6D.js +0 -2102
- package/dist/chunk-Q6JESX2O.js +0 -42
- package/dist/dist-es-2L3JFPXA.js +0 -377
- package/dist/dist-es-C6C5EPYY.js +0 -88
- package/dist/dist-es-M6CDI3BC.js +0 -70
- package/dist/dist-es-N74TKJQO.js +0 -170
- package/dist/dist-es-W4ABA4W6.js +0 -318
- package/dist/dist-es-XIFQZYH7.js +0 -493
- package/dist/dist-es-YTPWGDNE.js +0 -48
- package/dist/event-streams-SFJFPYVF.js +0 -1377
- package/dist/loadSso-UZHA43K3.js +0 -575
- package/dist/signin-HL5RI4AN.js +0 -739
- package/dist/sso-oidc-AMAMV42C.js +0 -828
- package/dist/sts-ZEHQ76A7.js +0 -6368
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "replicas-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"zod": "^3.25.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@replicas/shared": "*",
|
|
20
19
|
"@types/node": "^20.11.17",
|
|
21
20
|
"tsup": "^8.5.0",
|
|
22
21
|
"typescript": "^5.9.3"
|
package/src/index.ts
CHANGED
|
@@ -6,10 +6,17 @@ import {
|
|
|
6
6
|
getCodingAgentDisplayNames,
|
|
7
7
|
getProviderDisplayName,
|
|
8
8
|
isValidCodingAgentProvider,
|
|
9
|
-
parseAgentEvents,
|
|
10
9
|
type AgentProvider,
|
|
10
|
+
} from '../../shared/src/agent';
|
|
11
|
+
import {
|
|
12
|
+
parseAgentEvents,
|
|
13
|
+
} from '../../shared/src/display-message/parsers';
|
|
14
|
+
import {
|
|
11
15
|
type ReadReplicaHistoryResponse,
|
|
12
|
-
} from '
|
|
16
|
+
} from '../../shared/src/routes/replica';
|
|
17
|
+
import {
|
|
18
|
+
VALID_LIFECYCLE_POLICIES,
|
|
19
|
+
} from '../../shared/src/routes/workspaces';
|
|
13
20
|
|
|
14
21
|
const API_URL = process.env.REPLICAS_API_URL || 'https://api.tryreplicas.com';
|
|
15
22
|
const API_KEY = process.env.REPLICAS_API_KEY;
|
|
@@ -64,13 +71,14 @@ type RegisterToolFn = (
|
|
|
64
71
|
|
|
65
72
|
const server = new McpServer({
|
|
66
73
|
name: 'replicas-mcp',
|
|
67
|
-
version: '0.2.
|
|
74
|
+
version: '0.2.10',
|
|
68
75
|
});
|
|
69
76
|
|
|
70
77
|
const registerTool = server.registerTool.bind(server) as RegisterToolFn;
|
|
71
78
|
const codingAgentSchema = z.string().refine(isValidCodingAgentProvider, {
|
|
72
79
|
message: `Coding agent must be ${getCodingAgentDisplayNames()}`,
|
|
73
80
|
});
|
|
81
|
+
const lifecyclePolicySchema = z.enum(VALID_LIFECYCLE_POLICIES);
|
|
74
82
|
|
|
75
83
|
// ---------------------------------------------------------------------------
|
|
76
84
|
// Replica CRUD
|
|
@@ -87,7 +95,7 @@ registerTool(
|
|
|
87
95
|
repository_set_id: z.string().optional().describe('Repository set ID to use. Mutually exclusive with repository_ids.'),
|
|
88
96
|
coding_agent: codingAgentSchema.optional().describe('Coding agent to use (default: claude)'),
|
|
89
97
|
model: z.string().optional().describe('Model to use for the coding agent'),
|
|
90
|
-
lifecycle_policy:
|
|
98
|
+
lifecycle_policy: lifecyclePolicySchema.optional().describe('Lifecycle policy for the workspace'),
|
|
91
99
|
},
|
|
92
100
|
},
|
|
93
101
|
async (args) => {
|
package/tsup.config.ts
CHANGED
|
@@ -2,7 +2,6 @@ const config = {
|
|
|
2
2
|
entry: ['src/index.ts'],
|
|
3
3
|
format: ['esm'],
|
|
4
4
|
bundle: true,
|
|
5
|
-
noExternal: ['@replicas/shared'],
|
|
6
5
|
dts: false,
|
|
7
6
|
clean: true,
|
|
8
7
|
outDir: 'dist',
|
|
@@ -14,11 +13,6 @@ const config = {
|
|
|
14
13
|
js: '.js',
|
|
15
14
|
};
|
|
16
15
|
},
|
|
17
|
-
esbuildOptions(options: { alias?: Record<string, string> }) {
|
|
18
|
-
options.alias = {
|
|
19
|
-
'@replicas/shared': '../shared/src',
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
16
|
};
|
|
23
17
|
|
|
24
18
|
export default config;
|