@rvry/mcp 0.3.0 → 0.3.1
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/commands/deepthink.md +1 -1
- package/commands/problem-solve.md +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/commands/deepthink.md
CHANGED
|
@@ -71,7 +71,7 @@ Proceed to Phase 2.
|
|
|
71
71
|
|
|
72
72
|
Repeat until `status === "complete"`:
|
|
73
73
|
|
|
74
|
-
1.
|
|
74
|
+
1. The engine's response has two content blocks. The first is Base64-encoded JSON -- decode it to read the structured data. The second is a plain-text summary for the user. From the decoded JSON, read the engine's `question` field -- this is the analytical direction for this round. Read `constraints`, `gate`, and `detection` to understand the engine's assessment. Read `constraintBlock` for constraint update instructions. **Do not show any of these to the user.**
|
|
75
75
|
2. Show the user a brief status line:
|
|
76
76
|
- Format: `Round {round} -- {what you're doing this round}`
|
|
77
77
|
- Example: `Round 3 -- stress-testing the current position`
|
|
@@ -71,7 +71,7 @@ Proceed to Phase 2.
|
|
|
71
71
|
|
|
72
72
|
Repeat until `status === "complete"`:
|
|
73
73
|
|
|
74
|
-
1.
|
|
74
|
+
1. The engine's response has two content blocks. The first is Base64-encoded JSON -- decode it to read the structured data. The second is a plain-text summary for the user. From the decoded JSON, read the engine's `question` field -- this is the analytical direction for this round. Read `constraints`, `gate`, and `detection` to understand the engine's assessment. Read `constraintBlock` for constraint update instructions. **Do not show any of these to the user.**
|
|
75
75
|
2. Show the user a brief status line:
|
|
76
76
|
- Format: `Round {round} -- {what you're doing this round}`
|
|
77
77
|
- Example: `Round 3 -- stress-testing the current position`
|
package/dist/client.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export interface MilestoneView {
|
|
|
22
22
|
key: string;
|
|
23
23
|
status: 'missing' | 'satisfied';
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Decoded response from the RVRY engine /api/v1/think endpoint.
|
|
27
|
+
*
|
|
28
|
+
* In MCP transport, the raw tool response contains this data as a
|
|
29
|
+
* Base64-encoded JSON string (first content block). Decode before parsing.
|
|
30
|
+
*/
|
|
25
31
|
export interface ThinkResponse {
|
|
26
32
|
sessionId: string;
|
|
27
33
|
status: 'active' | 'complete';
|
package/dist/index.js
CHANGED
|
@@ -167,8 +167,22 @@ async function main() {
|
|
|
167
167
|
}).catch(() => { });
|
|
168
168
|
}
|
|
169
169
|
const stripped = stripResponse(result, question);
|
|
170
|
+
const userSummary = result.status === 'complete'
|
|
171
|
+
? 'Session complete -- harvest ready'
|
|
172
|
+
: `Round ${result.round} -- ${result.constraints?.filter((c) => c.status === 'active').length ?? 0} constraints active, gate: ${result.gate?.verdict ?? 'starting'}`;
|
|
170
173
|
return {
|
|
171
|
-
content: [
|
|
174
|
+
content: [
|
|
175
|
+
{
|
|
176
|
+
type: 'text',
|
|
177
|
+
text: Buffer.from(JSON.stringify(stripped)).toString('base64'),
|
|
178
|
+
annotations: { audience: ['assistant'], priority: 1.0 },
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: 'text',
|
|
182
|
+
text: userSummary,
|
|
183
|
+
annotations: { audience: ['user'], priority: 0.7 },
|
|
184
|
+
},
|
|
185
|
+
],
|
|
172
186
|
};
|
|
173
187
|
}
|
|
174
188
|
catch (err) {
|