@vibe-forge/mcp 0.8.4 → 0.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-forge/mcp",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "description": "Vibe Forge MCP server",
5
5
  "imports": {
6
6
  "#~/*.js": {
@@ -33,13 +33,13 @@
33
33
  "@modelcontextprotocol/sdk": "^1.25.3",
34
34
  "commander": "^12.1.0",
35
35
  "zod": "^3.24.1",
36
- "@vibe-forge/hooks": "^0.8.4",
37
- "@vibe-forge/task": "^0.8.4",
38
- "@vibe-forge/config": "^0.8.4",
39
- "@vibe-forge/types": "^0.8.4",
40
- "@vibe-forge/utils": "^0.8.4",
41
- "@vibe-forge/register": "^0.8.0",
42
- "@vibe-forge/cli-helper": "^0.8.0"
36
+ "@vibe-forge/config": "^0.9.0",
37
+ "@vibe-forge/hooks": "^0.9.0",
38
+ "@vibe-forge/task": "^0.9.0",
39
+ "@vibe-forge/utils": "^0.9.0",
40
+ "@vibe-forge/types": "^0.9.0",
41
+ "@vibe-forge/cli-helper": "^0.9.0",
42
+ "@vibe-forge/register": "^0.9.0"
43
43
  },
44
44
  "scripts": {
45
45
  "test": "pnpm -C ../.. exec vitest run --workspace vitest.workspace.ts --project bundler packages/mcp/__tests__"
@@ -6,9 +6,18 @@ const Schema = z.object({
6
6
  question: z.string().describe('The question to ask the user'),
7
7
  options: z.array(z.object({
8
8
  label: z.string().describe('The label of the option'),
9
+ value: z.string().optional().describe('Stable value returned when the option is chosen'),
9
10
  description: z.string().optional().describe('The description of the option')
10
11
  })).optional().describe('The options for the user to select from'),
11
- multiselect: z.boolean().optional().describe('Whether the user can select multiple options')
12
+ multiselect: z.boolean().optional().describe('Whether the user can select multiple options'),
13
+ kind: z.enum(['question', 'permission']).optional().describe('UI hint for how to present the interaction'),
14
+ permissionContext: z.object({
15
+ adapter: z.string().optional(),
16
+ currentMode: z.enum(['default', 'acceptEdits', 'plan', 'dontAsk', 'bypassPermissions']).optional(),
17
+ suggestedMode: z.enum(['default', 'acceptEdits', 'plan', 'dontAsk', 'bypassPermissions']).optional(),
18
+ deniedTools: z.array(z.string()).optional(),
19
+ reasons: z.array(z.string()).optional()
20
+ }).optional().describe('Extra context for permission escalation prompts')
12
21
  })
13
22
 
14
23
  export default defineRegister(({ registerTool }) => {
@@ -20,7 +29,7 @@ export default defineRegister(({ registerTool }) => {
20
29
  inputSchema: Schema
21
30
  },
22
31
  async (args) => {
23
- const { question, options, multiselect } = args
32
+ const { question, options, multiselect, kind, permissionContext } = args
24
33
  const sessionId = process.env.__VF_PROJECT_AI_SESSION_ID__
25
34
 
26
35
  if (!sessionId) {
@@ -40,7 +49,9 @@ export default defineRegister(({ registerTool }) => {
40
49
  sessionId,
41
50
  question,
42
51
  options,
43
- multiselect
52
+ multiselect,
53
+ kind,
54
+ permissionContext
44
55
  })
45
56
  })
46
57