@myspec/mcp-server 1.1.1-next.158 → 1.1.1-next.159
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 +7 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2892,11 +2892,7 @@ var HttpSpecSessionClient = class {
|
|
|
2892
2892
|
if (opts?.query) params.set("q", opts.query);
|
|
2893
2893
|
if (opts?.limit !== void 0) params.set("limit", String(opts.limit));
|
|
2894
2894
|
if (opts?.offset !== void 0) params.set("offset", String(opts.offset));
|
|
2895
|
-
const response = await this.httpClient.get(
|
|
2896
|
-
`/project/v1/projects/${projectId}/sessions?${params.toString()}`,
|
|
2897
|
-
jwtToken,
|
|
2898
|
-
{}
|
|
2899
|
-
);
|
|
2895
|
+
const response = await this.httpClient.get(`/project/v1/projects/${projectId}/sessions?${params.toString()}`, jwtToken, {});
|
|
2900
2896
|
return {
|
|
2901
2897
|
sessions: response.sessions.map(transformSpecSessionResponse),
|
|
2902
2898
|
total: response.total,
|
|
@@ -2904,13 +2900,14 @@ var HttpSpecSessionClient = class {
|
|
|
2904
2900
|
offset: response.offset
|
|
2905
2901
|
};
|
|
2906
2902
|
}
|
|
2907
|
-
async updateSpecSession(sessionId, updates, jwtToken) {
|
|
2903
|
+
async updateSpecSession(sessionId, updates, jwtToken, options) {
|
|
2908
2904
|
const body = {};
|
|
2909
2905
|
if (updates.status !== void 0) body.status = updates.status;
|
|
2910
2906
|
if (updates.messageCount !== void 0) body.message_count = updates.messageCount;
|
|
2911
2907
|
if (updates.tokenCount !== void 0) body.token_count = updates.tokenCount;
|
|
2912
2908
|
if (updates.context !== void 0) body.context = updates.context;
|
|
2913
2909
|
if (updates.chatHistory !== void 0) body.chat_history = updates.chatHistory;
|
|
2910
|
+
if (options?.originClientId) body.origin_client_id = options.originClientId;
|
|
2914
2911
|
const raw = await this.httpClient.put(
|
|
2915
2912
|
`/project/v1/sessions/${sessionId}`,
|
|
2916
2913
|
body,
|
|
@@ -2919,8 +2916,10 @@ var HttpSpecSessionClient = class {
|
|
|
2919
2916
|
);
|
|
2920
2917
|
return transformSpecSessionResponse(raw);
|
|
2921
2918
|
}
|
|
2922
|
-
async appendSessionMessage(sessionId, message, jwtToken) {
|
|
2923
|
-
const
|
|
2919
|
+
async appendSessionMessage(sessionId, message, jwtToken, options) {
|
|
2920
|
+
const body = { message };
|
|
2921
|
+
if (options?.originClientId) body.origin_client_id = options.originClientId;
|
|
2922
|
+
const response = await this.httpClient.post(`/project/v1/sessions/${sessionId}/messages`, body, jwtToken, {});
|
|
2924
2923
|
return { messageCount: response.message_count };
|
|
2925
2924
|
}
|
|
2926
2925
|
async archiveSpecSession(sessionId, jwtToken) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myspec/mcp-server",
|
|
3
|
-
"version": "1.1.1-next.
|
|
3
|
+
"version": "1.1.1-next.159",
|
|
4
4
|
"description": "MySpec MCP server — exposes MySpec platform projects, files and attachments to MCP-aware clients via OAuth-authenticated access tokens.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|