@myspec/mcp-server 0.5.0-next.118 → 0.5.0-next.119
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 +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1864,6 +1864,7 @@ var SPEC_FILE_LOCK_TTL_MS = 2 * 6e4;
|
|
|
1864
1864
|
|
|
1865
1865
|
// ../../packages/platform-client/project/types/comment.types.ts
|
|
1866
1866
|
var COMMENT_THREAD_FILTER_PARAM = "status";
|
|
1867
|
+
var COMMENT_UNRESOLVED_ONLY_PARAM = "unresolved_only";
|
|
1867
1868
|
var MAX_COMMENT_BODY_LENGTH = 1e4;
|
|
1868
1869
|
var MAX_ANCHOR_QUOTE_LENGTH = 2e3;
|
|
1869
1870
|
var MAX_ANCHOR_CONTEXT_LENGTH = 64;
|
|
@@ -1954,9 +1955,16 @@ function transformSpecFileCommentThreadList(raw) {
|
|
|
1954
1955
|
function transformProjectCommentCounts(raw) {
|
|
1955
1956
|
return (raw.counts ?? []).map(transformSpecFileCommentCountResponse);
|
|
1956
1957
|
}
|
|
1958
|
+
function transformProjectActivityCommentThread(raw) {
|
|
1959
|
+
return {
|
|
1960
|
+
...transformSpecFileCommentThreadResponse(raw),
|
|
1961
|
+
specFilePath: typeof raw.spec_file_path === "string" ? raw.spec_file_path : null,
|
|
1962
|
+
specFileTrashed: raw.spec_file_trashed === true
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1957
1965
|
function transformProjectCommentActivity(raw) {
|
|
1958
1966
|
return {
|
|
1959
|
-
threads: (raw.threads ?? []).map(
|
|
1967
|
+
threads: (raw.threads ?? []).map(transformProjectActivityCommentThread),
|
|
1960
1968
|
total: raw.total,
|
|
1961
1969
|
limit: raw.limit,
|
|
1962
1970
|
offset: raw.offset
|
|
@@ -2675,6 +2683,9 @@ var HttpSpecFileCommentClient = class {
|
|
|
2675
2683
|
if (opts?.offset !== void 0) {
|
|
2676
2684
|
query.set("offset", String(opts.offset));
|
|
2677
2685
|
}
|
|
2686
|
+
if (opts?.unresolvedOnly === true) {
|
|
2687
|
+
query.set(COMMENT_UNRESOLVED_ONLY_PARAM, "true");
|
|
2688
|
+
}
|
|
2678
2689
|
const suffix = query.toString() ? `?${query.toString()}` : "";
|
|
2679
2690
|
const raw = await this.httpClient.get(
|
|
2680
2691
|
`/project/v1/projects/${segment(projectId)}/comments${suffix}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myspec/mcp-server",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.119",
|
|
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": {
|