rrce-workflow 0.2.80 → 0.2.81
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/agent-core/prompts/doctor.md +3 -3
- package/agent-core/prompts/documentation.md +10 -5
- package/agent-core/prompts/executor.md +12 -7
- package/agent-core/prompts/init.md +1 -1
- package/agent-core/prompts/planning_discussion.md +13 -8
- package/agent-core/prompts/research_discussion.md +13 -8
- package/agent-core/prompts/sync.md +11 -6
- package/dist/index.js +32 -30
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Doctor
|
|
3
3
|
description: Analyze codebase health using semantic search; identify issues and recommend improvement tasks.
|
|
4
4
|
argument-hint: "[PROJECT_NAME=<name>] [FOCUS_AREA=<area>]"
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'list_projects']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'list_projects', 'create_task']
|
|
6
6
|
required-args: []
|
|
7
7
|
optional-args:
|
|
8
8
|
- name: PROJECT_NAME
|
|
@@ -55,7 +55,7 @@ For details, see: `{{RRCE_DATA}}/docs/path-resolution.md`
|
|
|
55
55
|
### Step 1: Load Project Context
|
|
56
56
|
|
|
57
57
|
```
|
|
58
|
-
Tool:
|
|
58
|
+
Tool: rrce_get_project_context
|
|
59
59
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -93,7 +93,7 @@ Use `search_knowledge` to efficiently find problem areas. Run queries based on F
|
|
|
93
93
|
|
|
94
94
|
**Query Execution:**
|
|
95
95
|
```
|
|
96
|
-
Tool:
|
|
96
|
+
Tool: rrce_search_knowledge
|
|
97
97
|
Args: { "query": "<query>", "project": "{{WORKSPACE_NAME}}" }
|
|
98
98
|
```
|
|
99
99
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Documentation
|
|
3
3
|
description: Produce project documentation aligned with the latest delivery.
|
|
4
4
|
argument-hint: "DOC_TYPE=<type> [TASK_SLUG=<slug> | TARGET_PATH=<relative>] [RELEASE_REF=<tag/sha>]"
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'update_task', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: DOC_TYPE
|
|
8
8
|
prompt: "Enter the documentation type (e.g., api, architecture, runbook, changelog)"
|
|
@@ -44,11 +44,16 @@ Pipeline Position
|
|
|
44
44
|
1. **Path Resolution**: Always use the "System Resolved Paths" from the context preamble.
|
|
45
45
|
- Use `{{RRCE_DATA}}` for all RRCE-specific storage.
|
|
46
46
|
- Use `{{WORKSPACE_ROOT}}` for project source code.
|
|
47
|
-
2. **
|
|
47
|
+
2. **Metadata Updates**: For `meta.json` changes, use the MCP tool:
|
|
48
|
+
```
|
|
49
|
+
Tool: rrce_update_task
|
|
50
|
+
Args: { "project": "{{WORKSPACE_NAME}}", "task_slug": "{{TASK_SLUG}}", "updates": { ... } }
|
|
51
|
+
```
|
|
52
|
+
This tool saves the file automatically. Do NOT use `write` for meta.json.
|
|
53
|
+
3. **File Writing**: When using the `write` tool for other files:
|
|
48
54
|
- The `content` parameter **MUST be a string**.
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
3. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
55
|
+
- For JSON in other files, stringify first: `JSON.stringify(data, null, 2)`
|
|
56
|
+
4. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
52
57
|
|
|
53
58
|
Prerequisites (RECOMMENDED)
|
|
54
59
|
If a `TASK_SLUG` is provided:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Executor
|
|
3
3
|
description: Execute the planned tasks to deliver working code and tests. The ONLY agent authorized to modify source code.
|
|
4
4
|
argument-hint: "TASK_SLUG=<slug> [BRANCH=<git ref>]"
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'terminalLastCommand', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'update_task', 'terminalLastCommand', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: TASK_SLUG
|
|
8
8
|
prompt: "Enter the task slug to execute"
|
|
@@ -79,11 +79,16 @@ Before touching ANY code, verify ALL of the following in order:
|
|
|
79
79
|
1. **Path Resolution**: Always use the "System Resolved Paths" from the context preamble.
|
|
80
80
|
- Use `{{RRCE_DATA}}` for all RRCE-specific storage.
|
|
81
81
|
- Use `{{WORKSPACE_ROOT}}` for project source code.
|
|
82
|
-
2. **
|
|
82
|
+
2. **Metadata Updates**: For `meta.json` changes, use the MCP tool:
|
|
83
|
+
```
|
|
84
|
+
Tool: rrce_update_task
|
|
85
|
+
Args: { "project": "{{WORKSPACE_NAME}}", "task_slug": "{{TASK_SLUG}}", "updates": { ... } }
|
|
86
|
+
```
|
|
87
|
+
This tool saves the file automatically. Do NOT use `write` for meta.json.
|
|
88
|
+
3. **File Writing**: When using the `write` tool for other files:
|
|
83
89
|
- The `content` parameter **MUST be a string**.
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
3. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
90
|
+
- For JSON in other files, stringify first: `JSON.stringify(data, null, 2)`
|
|
91
|
+
4. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
87
92
|
|
|
88
93
|
## Mission
|
|
89
94
|
- Implement the scoped work as defined in the execution plan
|
|
@@ -96,7 +101,7 @@ Before touching ANY code, verify ALL of the following in order:
|
|
|
96
101
|
|
|
97
102
|
Before implementing, search for relevant patterns:
|
|
98
103
|
```
|
|
99
|
-
Tool:
|
|
104
|
+
Tool: rrce_search_knowledge
|
|
100
105
|
Args: { "query": "<component or pattern name>", "project": "{{WORKSPACE_NAME}}" }
|
|
101
106
|
```
|
|
102
107
|
|
|
@@ -262,7 +267,7 @@ After completing execution:
|
|
|
262
267
|
|
|
263
268
|
If significant code was added or modified, suggest running:
|
|
264
269
|
```
|
|
265
|
-
Tool:
|
|
270
|
+
Tool: rrce_index_knowledge
|
|
266
271
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
267
272
|
```
|
|
268
273
|
|
|
@@ -132,7 +132,7 @@ Scan in this priority order. Stop early if sufficient information gathered:
|
|
|
132
132
|
**Always run after generating/updating context:**
|
|
133
133
|
|
|
134
134
|
```
|
|
135
|
-
Tool:
|
|
135
|
+
Tool: rrce_index_knowledge
|
|
136
136
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
137
137
|
```
|
|
138
138
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Planning
|
|
3
3
|
description: Transform research findings into an actionable execution plan through interactive task breakdown.
|
|
4
4
|
argument-hint: "TASK_SLUG=<slug>"
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'read', 'glob', 'grep', 'write', 'bash']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'update_task', 'read', 'glob', 'grep', 'write', 'bash']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: TASK_SLUG
|
|
8
8
|
prompt: "Enter the task slug to create a plan for"
|
|
@@ -52,13 +52,18 @@ For details, see: `{{RRCE_DATA}}/docs/path-resolution.md`
|
|
|
52
52
|
1. **Path Resolution**: Always use the "System Resolved Paths" from the context preamble.
|
|
53
53
|
- Use `{{RRCE_DATA}}` for all RRCE-specific storage.
|
|
54
54
|
- Use `{{WORKSPACE_ROOT}}` for reading project source code (READ ONLY).
|
|
55
|
-
2. **
|
|
55
|
+
2. **Metadata Updates**: For `meta.json` changes, use the MCP tool:
|
|
56
|
+
```
|
|
57
|
+
Tool: rrce_update_task
|
|
58
|
+
Args: { "project": "{{WORKSPACE_NAME}}", "task_slug": "{{TASK_SLUG}}", "updates": { ... } }
|
|
59
|
+
```
|
|
60
|
+
This tool saves the file automatically. Do NOT use `write` for meta.json.
|
|
61
|
+
3. **File Writing**: When using the `write` tool for other files:
|
|
56
62
|
- The `content` parameter **MUST be a string**.
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
3. **Write Permissions**: You may ONLY write to:
|
|
63
|
+
- For JSON in other files, stringify first: `JSON.stringify(data, null, 2)`
|
|
64
|
+
4. **Write Permissions**: You may ONLY write to:
|
|
60
65
|
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/planning/` (plan artifacts)
|
|
61
|
-
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/meta.json` (metadata)
|
|
66
|
+
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/meta.json` (metadata via rrce_update_task)
|
|
62
67
|
- `{{RRCE_DATA}}/knowledge/` (new knowledge documents)
|
|
63
68
|
|
|
64
69
|
## Prerequisites (STRICT)
|
|
@@ -113,7 +118,7 @@ Extract and internalize:
|
|
|
113
118
|
|
|
114
119
|
Search for related patterns and prior art:
|
|
115
120
|
```
|
|
116
|
-
Tool:
|
|
121
|
+
Tool: rrce_search_knowledge
|
|
117
122
|
Args: { "query": "<task keywords>", "project": "{{WORKSPACE_NAME}}" }
|
|
118
123
|
```
|
|
119
124
|
|
|
@@ -273,7 +278,7 @@ After saving the plan and updating metadata:
|
|
|
273
278
|
|
|
274
279
|
If new knowledge files were created in `{{RRCE_DATA}}/knowledge/`, suggest running:
|
|
275
280
|
```
|
|
276
|
-
Tool:
|
|
281
|
+
Tool: rrce_index_knowledge
|
|
277
282
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
278
283
|
```
|
|
279
284
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Research
|
|
3
3
|
description: Interactive research and requirements clarification through constructive dialogue. Achieves 100% understanding before planning.
|
|
4
4
|
argument-hint: REQUEST="<user prompt>" [TASK_SLUG=<slug>] [TITLE="<task title>"] [SOURCE=<url>]
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'read', 'glob', 'grep', 'write', 'bash']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'list_projects', 'create_task', 'update_task', 'read', 'glob', 'grep', 'write', 'bash']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: TASK_SLUG
|
|
8
8
|
prompt: "Enter a task slug (kebab-case identifier)"
|
|
@@ -57,13 +57,18 @@ For details, see: `{{RRCE_DATA}}/docs/path-resolution.md`
|
|
|
57
57
|
1. **Path Resolution**: Always use the "System Resolved Paths" from the context preamble.
|
|
58
58
|
- Use `{{RRCE_DATA}}` for all RRCE-specific storage.
|
|
59
59
|
- Use `{{WORKSPACE_ROOT}}` for reading project source code (READ ONLY).
|
|
60
|
-
2. **
|
|
60
|
+
2. **Metadata Updates**: For `meta.json` changes, use the MCP tool:
|
|
61
|
+
```
|
|
62
|
+
Tool: rrce_update_task
|
|
63
|
+
Args: { "project": "{{WORKSPACE_NAME}}", "task_slug": "{{TASK_SLUG}}", "updates": { ... } }
|
|
64
|
+
```
|
|
65
|
+
This tool saves the file automatically. Do NOT use `write` for meta.json.
|
|
66
|
+
3. **File Writing**: When using the `write` tool for other files:
|
|
61
67
|
- The `content` parameter **MUST be a string**.
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
3. **Write Permissions**: You may ONLY write to:
|
|
68
|
+
- For JSON in other files, stringify first: `JSON.stringify(data, null, 2)`
|
|
69
|
+
4. **Write Permissions**: You may ONLY write to:
|
|
65
70
|
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/` (task artifacts)
|
|
66
|
-
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/meta.json` (metadata)
|
|
71
|
+
- `{{RRCE_DATA}}/tasks/{{TASK_SLUG}}/meta.json` (metadata via rrce_update_task)
|
|
67
72
|
|
|
68
73
|
## Mission
|
|
69
74
|
- Challenge and refine the incoming request until intent, constraints, and success criteria are explicit
|
|
@@ -78,7 +83,7 @@ For details, see: `{{RRCE_DATA}}/docs/path-resolution.md`
|
|
|
78
83
|
**Search existing knowledge for relevant context:**
|
|
79
84
|
|
|
80
85
|
```
|
|
81
|
-
Tool:
|
|
86
|
+
Tool: rrce_search_knowledge
|
|
82
87
|
Args: { "query": "<keywords from REQUEST>", "project": "{{WORKSPACE_NAME}}" }
|
|
83
88
|
```
|
|
84
89
|
|
|
@@ -91,7 +96,7 @@ Look for:
|
|
|
91
96
|
**Get project context:**
|
|
92
97
|
|
|
93
98
|
```
|
|
94
|
-
Tool:
|
|
99
|
+
Tool: rrce_get_project_context
|
|
95
100
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
96
101
|
```
|
|
97
102
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Sync
|
|
3
3
|
description: Reconcile project state with the RRCE knowledge base and update semantic index.
|
|
4
4
|
argument-hint: "[SCOPE=<path|module>]"
|
|
5
|
-
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'list_projects', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
5
|
+
tools: ['search_knowledge', 'get_project_context', 'index_knowledge', 'list_projects', 'update_task', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
6
6
|
required-args: []
|
|
7
7
|
optional-args:
|
|
8
8
|
- name: SCOPE
|
|
@@ -27,11 +27,16 @@ Pipeline Position
|
|
|
27
27
|
1. **Path Resolution**: Always use the "System Resolved Paths" from the context preamble.
|
|
28
28
|
- Use `{{RRCE_DATA}}` for all RRCE-specific storage.
|
|
29
29
|
- Use `{{WORKSPACE_ROOT}}` for project source code.
|
|
30
|
-
2. **
|
|
30
|
+
2. **Metadata Updates**: For `meta.json` changes, use the MCP tool:
|
|
31
|
+
```
|
|
32
|
+
Tool: rrce_update_task
|
|
33
|
+
Args: { "project": "{{WORKSPACE_NAME}}", "task_slug": "{{TASK_SLUG}}", "updates": { ... } }
|
|
34
|
+
```
|
|
35
|
+
This tool saves the file automatically. Do NOT use `write` for meta.json.
|
|
36
|
+
3. **File Writing**: When using the `write` tool for other files:
|
|
31
37
|
- The `content` parameter **MUST be a string**.
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
3. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
38
|
+
- For JSON in other files, stringify first: `JSON.stringify(data, null, 2)`
|
|
39
|
+
4. **Directory Safety**: Use `bash` with `mkdir -p` to ensure parent directories exist before writing files if they might be missing.
|
|
35
40
|
|
|
36
41
|
Prerequisites (STRICT)
|
|
37
42
|
1. **Project Context Exists**: Check `{{RRCE_DATA}}/knowledge/project-context.md` exists.
|
|
@@ -62,7 +67,7 @@ Workflow
|
|
|
62
67
|
5. Summarize any unresolved questions or future sync needs at the bottom of the modified file(s) under a `Checklist` heading.
|
|
63
68
|
6. **Semantic Indexing (MANDATORY)**: After updating any knowledge files, run the indexer to keep search current:
|
|
64
69
|
```
|
|
65
|
-
Tool:
|
|
70
|
+
Tool: rrce_index_knowledge
|
|
66
71
|
Args: { "project": "{{WORKSPACE_NAME}}" }
|
|
67
72
|
```
|
|
68
73
|
|
package/dist/index.js
CHANGED
|
@@ -2821,7 +2821,7 @@ function registerToolHandlers(server) {
|
|
|
2821
2821
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
2822
2822
|
const tools = [
|
|
2823
2823
|
{
|
|
2824
|
-
name: "
|
|
2824
|
+
name: "rrce_search_knowledge",
|
|
2825
2825
|
description: "Search across all exposed project knowledge bases",
|
|
2826
2826
|
inputSchema: {
|
|
2827
2827
|
type: "object",
|
|
@@ -2833,7 +2833,7 @@ function registerToolHandlers(server) {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
},
|
|
2835
2835
|
{
|
|
2836
|
-
name: "
|
|
2836
|
+
name: "rrce_index_knowledge",
|
|
2837
2837
|
description: "Update the semantic search index for a specific project",
|
|
2838
2838
|
inputSchema: {
|
|
2839
2839
|
type: "object",
|
|
@@ -2845,12 +2845,12 @@ function registerToolHandlers(server) {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
},
|
|
2847
2847
|
{
|
|
2848
|
-
name: "
|
|
2848
|
+
name: "rrce_list_projects",
|
|
2849
2849
|
description: "List all projects exposed via MCP. Use these names for project-specific tools.",
|
|
2850
2850
|
inputSchema: { type: "object", properties: {} }
|
|
2851
2851
|
},
|
|
2852
2852
|
{
|
|
2853
|
-
name: "
|
|
2853
|
+
name: "rrce_get_project_context",
|
|
2854
2854
|
description: "Get the project context/architecture for a specific project",
|
|
2855
2855
|
inputSchema: {
|
|
2856
2856
|
type: "object",
|
|
@@ -2859,12 +2859,12 @@ function registerToolHandlers(server) {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
},
|
|
2861
2861
|
{
|
|
2862
|
-
name: "
|
|
2862
|
+
name: "rrce_list_agents",
|
|
2863
2863
|
description: "List available agents (e.g. init, plan) and their arguments. Use this to discover which agent to call.",
|
|
2864
2864
|
inputSchema: { type: "object", properties: {} }
|
|
2865
2865
|
},
|
|
2866
2866
|
{
|
|
2867
|
-
name: "
|
|
2867
|
+
name: "rrce_get_agent_prompt",
|
|
2868
2868
|
description: 'Get the system prompt for a specific agent. Accepts agent Name (e.g. "RRCE Init") or ID (e.g. "init").',
|
|
2869
2869
|
inputSchema: {
|
|
2870
2870
|
type: "object",
|
|
@@ -2876,7 +2876,7 @@ function registerToolHandlers(server) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
},
|
|
2878
2878
|
{
|
|
2879
|
-
name: "
|
|
2879
|
+
name: "rrce_list_tasks",
|
|
2880
2880
|
description: "List all tasks for a project",
|
|
2881
2881
|
inputSchema: {
|
|
2882
2882
|
type: "object",
|
|
@@ -2885,7 +2885,7 @@ function registerToolHandlers(server) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
},
|
|
2887
2887
|
{
|
|
2888
|
-
name: "
|
|
2888
|
+
name: "rrce_get_task",
|
|
2889
2889
|
description: "Get details of a specific task",
|
|
2890
2890
|
inputSchema: {
|
|
2891
2891
|
type: "object",
|
|
@@ -2897,7 +2897,7 @@ function registerToolHandlers(server) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
},
|
|
2899
2899
|
{
|
|
2900
|
-
name: "
|
|
2900
|
+
name: "rrce_create_task",
|
|
2901
2901
|
description: "Create a new task in the project",
|
|
2902
2902
|
inputSchema: {
|
|
2903
2903
|
type: "object",
|
|
@@ -2911,7 +2911,7 @@ function registerToolHandlers(server) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
},
|
|
2913
2913
|
{
|
|
2914
|
-
name: "
|
|
2914
|
+
name: "rrce_update_task",
|
|
2915
2915
|
description: "Update an existing task",
|
|
2916
2916
|
inputSchema: {
|
|
2917
2917
|
type: "object",
|
|
@@ -2924,7 +2924,7 @@ function registerToolHandlers(server) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
},
|
|
2926
2926
|
{
|
|
2927
|
-
name: "
|
|
2927
|
+
name: "rrce_delete_task",
|
|
2928
2928
|
description: "Delete a task from the project",
|
|
2929
2929
|
inputSchema: {
|
|
2930
2930
|
type: "object",
|
|
@@ -2939,7 +2939,7 @@ function registerToolHandlers(server) {
|
|
|
2939
2939
|
const projects = getExposedProjects();
|
|
2940
2940
|
if (projects.length === 0) {
|
|
2941
2941
|
tools.push({
|
|
2942
|
-
name: "
|
|
2942
|
+
name: "rrce_help_setup",
|
|
2943
2943
|
description: "Get help on how to configure projects for the RRCE MCP Server",
|
|
2944
2944
|
inputSchema: { type: "object", properties: {} }
|
|
2945
2945
|
});
|
|
@@ -2951,27 +2951,27 @@ function registerToolHandlers(server) {
|
|
|
2951
2951
|
logger.info(`Calling tool: ${name}`, args);
|
|
2952
2952
|
try {
|
|
2953
2953
|
switch (name) {
|
|
2954
|
-
case "
|
|
2954
|
+
case "rrce_search_knowledge": {
|
|
2955
2955
|
const params = args;
|
|
2956
2956
|
const results = await searchKnowledge(params.query, params.project);
|
|
2957
2957
|
return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }] };
|
|
2958
2958
|
}
|
|
2959
|
-
case "
|
|
2959
|
+
case "rrce_index_knowledge": {
|
|
2960
2960
|
const params = args;
|
|
2961
2961
|
const result = await indexKnowledge(params.project, params.force);
|
|
2962
2962
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
2963
2963
|
}
|
|
2964
|
-
case "
|
|
2964
|
+
case "rrce_list_projects": {
|
|
2965
2965
|
const projects = getExposedProjects();
|
|
2966
2966
|
const list = projects.map((p) => ({ name: p.name, source: p.source, path: p.path }));
|
|
2967
2967
|
return {
|
|
2968
2968
|
content: [{
|
|
2969
2969
|
type: "text",
|
|
2970
|
-
text: JSON.stringify(list, null, 2) + "\n\nTip: Use these project names for tools like `
|
|
2970
|
+
text: JSON.stringify(list, null, 2) + "\n\nTip: Use these project names for tools like `rrce_get_project_context` or `rrce_index_knowledge`."
|
|
2971
2971
|
}]
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
case "
|
|
2974
|
+
case "rrce_get_project_context": {
|
|
2975
2975
|
const context = getProjectContext(args.project);
|
|
2976
2976
|
if (!context) {
|
|
2977
2977
|
const projects = getExposedProjects().map((p) => p.name).join(", ");
|
|
@@ -2982,7 +2982,7 @@ Available projects: ${projects}`;
|
|
|
2982
2982
|
}
|
|
2983
2983
|
return { content: [{ type: "text", text: context }] };
|
|
2984
2984
|
}
|
|
2985
|
-
case "
|
|
2985
|
+
case "rrce_list_agents": {
|
|
2986
2986
|
const prompts = getAllPrompts();
|
|
2987
2987
|
return {
|
|
2988
2988
|
content: [{
|
|
@@ -2992,11 +2992,11 @@ Available projects: ${projects}`;
|
|
|
2992
2992
|
id: p.id,
|
|
2993
2993
|
description: p.description,
|
|
2994
2994
|
arguments: p.arguments
|
|
2995
|
-
})), null, 2) + "\n\nTip: Retrieve the prompt for an agent using `
|
|
2995
|
+
})), null, 2) + "\n\nTip: Retrieve the prompt for an agent using `rrce_get_agent_prompt` with its name or ID."
|
|
2996
2996
|
}]
|
|
2997
2997
|
};
|
|
2998
2998
|
}
|
|
2999
|
-
case "
|
|
2999
|
+
case "rrce_get_agent_prompt": {
|
|
3000
3000
|
const params = args;
|
|
3001
3001
|
const agentName = params.agent;
|
|
3002
3002
|
const promptDef = getPromptDef(agentName);
|
|
@@ -3021,12 +3021,12 @@ The system has pre-resolved the configuration for this project. Use these values
|
|
|
3021
3021
|
`;
|
|
3022
3022
|
return { content: [{ type: "text", text: contextPreamble + rendered }] };
|
|
3023
3023
|
}
|
|
3024
|
-
case "
|
|
3024
|
+
case "rrce_list_tasks": {
|
|
3025
3025
|
const params = args;
|
|
3026
3026
|
const tasks = getProjectTasks(params.project);
|
|
3027
3027
|
return { content: [{ type: "text", text: JSON.stringify(tasks, null, 2) }] };
|
|
3028
3028
|
}
|
|
3029
|
-
case "
|
|
3029
|
+
case "rrce_get_task": {
|
|
3030
3030
|
const params = args;
|
|
3031
3031
|
const task = getTask(params.project, params.task_slug);
|
|
3032
3032
|
if (!task) {
|
|
@@ -3034,26 +3034,28 @@ The system has pre-resolved the configuration for this project. Use these values
|
|
|
3034
3034
|
}
|
|
3035
3035
|
return { content: [{ type: "text", text: JSON.stringify(task, null, 2) }] };
|
|
3036
3036
|
}
|
|
3037
|
-
case "
|
|
3037
|
+
case "rrce_create_task": {
|
|
3038
3038
|
const params = args;
|
|
3039
3039
|
const taskData = {
|
|
3040
3040
|
title: params.title || params.task_slug,
|
|
3041
3041
|
summary: params.summary || ""
|
|
3042
3042
|
};
|
|
3043
3043
|
const task = await createTask(params.project, params.task_slug, taskData);
|
|
3044
|
-
return { content: [{ type: "text", text:
|
|
3044
|
+
return { content: [{ type: "text", text: `\u2713 Task '${params.task_slug}' created. meta.json saved.
|
|
3045
|
+
${JSON.stringify(task, null, 2)}` }] };
|
|
3045
3046
|
}
|
|
3046
|
-
case "
|
|
3047
|
+
case "rrce_update_task": {
|
|
3047
3048
|
const params = args;
|
|
3048
3049
|
const task = await updateTask(params.project, params.task_slug, params.updates);
|
|
3049
|
-
return { content: [{ type: "text", text:
|
|
3050
|
+
return { content: [{ type: "text", text: `\u2713 Task '${params.task_slug}' updated. meta.json saved.
|
|
3051
|
+
${JSON.stringify(task, null, 2)}` }] };
|
|
3050
3052
|
}
|
|
3051
|
-
case "
|
|
3053
|
+
case "rrce_delete_task": {
|
|
3052
3054
|
const params = args;
|
|
3053
3055
|
const success = deleteTask(params.project, params.task_slug);
|
|
3054
|
-
return { content: [{ type: "text", text: success ?
|
|
3056
|
+
return { content: [{ type: "text", text: success ? `\u2713 Task '${params.task_slug}' deleted.` : `\u2717 Failed to delete '${params.task_slug}'.` }] };
|
|
3055
3057
|
}
|
|
3056
|
-
case "
|
|
3058
|
+
case "rrce_help_setup": {
|
|
3057
3059
|
const msg = `
|
|
3058
3060
|
RRCE MCP Server is running, but no projects are configured/exposed.
|
|
3059
3061
|
|
|
@@ -3291,7 +3293,7 @@ async function handleConfigure() {
|
|
|
3291
3293
|
enableSemanticSearch = shouldEnable;
|
|
3292
3294
|
if (enableSemanticSearch) {
|
|
3293
3295
|
note3(
|
|
3294
|
-
`This enables "
|
|
3296
|
+
`This enables "rrce_search_knowledge" tool for agents.
|
|
3295
3297
|
First use will download a ~100MB embedding model (all-MiniLM-L6-v2)
|
|
3296
3298
|
to your local device (one-time).`,
|
|
3297
3299
|
"Semantic Search Enabled"
|