@vibescope/mcp-server 0.3.9 → 0.3.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/handlers/session.js +17 -0
- package/package.json +15 -16
- package/src/handlers/session.ts +18 -0
package/dist/handlers/session.js
CHANGED
|
@@ -151,6 +151,23 @@ export const startWorkSession = async (args, ctx) => {
|
|
|
151
151
|
result.persona = data.persona;
|
|
152
152
|
result.role = data.role;
|
|
153
153
|
result.project = data.project;
|
|
154
|
+
// For cloud agents: include workspace setup instructions if repo not yet cloned
|
|
155
|
+
// Cloud agents pass git_url; check if workspace needs setup
|
|
156
|
+
if (git_url && data.project?.git_url) {
|
|
157
|
+
result.workspace_setup = {
|
|
158
|
+
message: 'If the project repo is NOT already cloned to your workspace, follow these steps:',
|
|
159
|
+
steps: [
|
|
160
|
+
`git clone ${data.project.git_url} ~/workspace/project`,
|
|
161
|
+
'cd ~/workspace/project',
|
|
162
|
+
...(data.project.git_workflow === 'git-flow'
|
|
163
|
+
? [`git checkout ${data.project.git_develop_branch || 'develop'}`]
|
|
164
|
+
: []),
|
|
165
|
+
'Install dependencies (check for pnpm-lock.yaml, package-lock.json, etc.)',
|
|
166
|
+
'If using SvelteKit: run `pnpm exec svelte-kit sync` or equivalent',
|
|
167
|
+
],
|
|
168
|
+
note: 'Skip these steps if ~/workspace/project already exists and has the repo.',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
154
171
|
// Inform agent if git_url was normalized (helps explain URL matching behavior)
|
|
155
172
|
if (gitUrlWasNormalized) {
|
|
156
173
|
result.git_url_normalized = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibescope/mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "MCP server for Vibescope - AI project tracking tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,20 +19,6 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsc",
|
|
24
|
-
"dev": "tsc --watch",
|
|
25
|
-
"test": "vitest run",
|
|
26
|
-
"test:watch": "vitest",
|
|
27
|
-
"docs:generate": "npx tsx scripts/generate-docs.ts --output=docs/TOOLS.md",
|
|
28
|
-
"docs:preview": "npx tsx scripts/generate-docs.ts",
|
|
29
|
-
"version:check": "npx tsx scripts/version-bump.ts --dry-run",
|
|
30
|
-
"version:bump": "npx tsx scripts/version-bump.ts",
|
|
31
|
-
"version:patch": "npx tsx scripts/version-bump.ts --patch",
|
|
32
|
-
"version:minor": "npx tsx scripts/version-bump.ts --minor",
|
|
33
|
-
"version:major": "npx tsx scripts/version-bump.ts --major",
|
|
34
|
-
"prepublishOnly": "npm run build"
|
|
35
|
-
},
|
|
36
22
|
"keywords": [
|
|
37
23
|
"mcp",
|
|
38
24
|
"model-context-protocol",
|
|
@@ -49,5 +35,18 @@
|
|
|
49
35
|
},
|
|
50
36
|
"dependencies": {
|
|
51
37
|
"@modelcontextprotocol/sdk": "^1.25.2"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc",
|
|
41
|
+
"dev": "tsc --watch",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"test:watch": "vitest",
|
|
44
|
+
"docs:generate": "npx tsx scripts/generate-docs.ts --output=docs/TOOLS.md",
|
|
45
|
+
"docs:preview": "npx tsx scripts/generate-docs.ts",
|
|
46
|
+
"version:check": "npx tsx scripts/version-bump.ts --dry-run",
|
|
47
|
+
"version:bump": "npx tsx scripts/version-bump.ts",
|
|
48
|
+
"version:patch": "npx tsx scripts/version-bump.ts --patch",
|
|
49
|
+
"version:minor": "npx tsx scripts/version-bump.ts --minor",
|
|
50
|
+
"version:major": "npx tsx scripts/version-bump.ts --major"
|
|
52
51
|
}
|
|
53
|
-
}
|
|
52
|
+
}
|
package/src/handlers/session.ts
CHANGED
|
@@ -183,6 +183,24 @@ export const startWorkSession: Handler = async (args, ctx) => {
|
|
|
183
183
|
result.role = data.role;
|
|
184
184
|
result.project = data.project;
|
|
185
185
|
|
|
186
|
+
// For cloud agents: include workspace setup instructions if repo not yet cloned
|
|
187
|
+
// Cloud agents pass git_url; check if workspace needs setup
|
|
188
|
+
if (git_url && data.project?.git_url) {
|
|
189
|
+
result.workspace_setup = {
|
|
190
|
+
message: 'If the project repo is NOT already cloned to your workspace, follow these steps:',
|
|
191
|
+
steps: [
|
|
192
|
+
`git clone ${data.project.git_url} ~/workspace/project`,
|
|
193
|
+
'cd ~/workspace/project',
|
|
194
|
+
...(data.project.git_workflow === 'git-flow'
|
|
195
|
+
? [`git checkout ${data.project.git_develop_branch || 'develop'}`]
|
|
196
|
+
: []),
|
|
197
|
+
'Install dependencies (check for pnpm-lock.yaml, package-lock.json, etc.)',
|
|
198
|
+
'If using SvelteKit: run `pnpm exec svelte-kit sync` or equivalent',
|
|
199
|
+
],
|
|
200
|
+
note: 'Skip these steps if ~/workspace/project already exists and has the repo.',
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
186
204
|
// Inform agent if git_url was normalized (helps explain URL matching behavior)
|
|
187
205
|
if (gitUrlWasNormalized) {
|
|
188
206
|
result.git_url_normalized = {
|