@speakai/mcp-server 1.39.0 → 1.39.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/dist/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6822,13 +6822,15 @@ function register7(server, client) {
|
|
|
6822
6822
|
content: [{ type: "text", text: `Error: ${message}` }],
|
|
6823
6823
|
isError: true
|
|
6824
6824
|
});
|
|
6825
|
-
const withAnalysisOutcome = async (payload, messageId) => {
|
|
6826
|
-
if (!messageId) return payload;
|
|
6825
|
+
const withAnalysisOutcome = async (payload, promptId, messageId) => {
|
|
6826
|
+
if (!promptId || !messageId) return payload;
|
|
6827
6827
|
try {
|
|
6828
|
-
const res = await api.get("/v1/prompt/messages", { params: {
|
|
6829
|
-
const
|
|
6830
|
-
const list = Array.isArray(
|
|
6831
|
-
|
|
6828
|
+
const res = await api.get("/v1/prompt/messages", { params: { promptId } });
|
|
6829
|
+
const history = res.data?.data?.history;
|
|
6830
|
+
const list = Array.isArray(history) ? history.flatMap(
|
|
6831
|
+
(conversation) => Array.isArray(conversation?.messages) ? conversation.messages : []
|
|
6832
|
+
) : [];
|
|
6833
|
+
const match = list.find((m) => m?.messageId === messageId);
|
|
6832
6834
|
const analysis = match?.analysis;
|
|
6833
6835
|
if (!analysis) return payload;
|
|
6834
6836
|
const downgraded = analysis.requested && analysis.used && analysis.requested !== analysis.used;
|
|
@@ -6860,7 +6862,7 @@ function register7(server, client) {
|
|
|
6860
6862
|
}
|
|
6861
6863
|
try {
|
|
6862
6864
|
const result = analysisInput ? await api.post("/v1/prompt", params, { timeout: ANALYSIS_TIMEOUT_MS }) : await api.post("/v1/prompt", params);
|
|
6863
|
-
const payload = analysisInput ? await withAnalysisOutcome(result.data, result.data?.data?.messageId) : result.data;
|
|
6865
|
+
const payload = analysisInput ? await withAnalysisOutcome(result.data, result.data?.data?.promptId, result.data?.data?.messageId) : result.data;
|
|
6864
6866
|
return {
|
|
6865
6867
|
content: [{ type: "text", text: JSON.stringify(payload, null, 2) }]
|
|
6866
6868
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speakai/mcp-server",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.1",
|
|
4
4
|
"mcpName": "io.github.speakai/mcp-server",
|
|
5
5
|
"description": "Official Speak AI MCP Server — capture meetings, search thousands of recordings, run async voice and video surveys, create clips, and automate workflows from your AI assistant.",
|
|
6
6
|
"homepage": "https://docs.speakai.co/mcp",
|