@trycomp/compound-mcp 0.1.0 → 0.1.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/README.md +2 -2
- package/bin/mcp-server.js +1168 -1046
- package/bin/mcp-server.js.map +11 -8
- package/esm/funcs/authGetActiveOrg.d.ts +13 -0
- package/esm/funcs/authGetActiveOrg.d.ts.map +1 -0
- package/esm/funcs/authGetActiveOrg.js +79 -0
- package/esm/funcs/authGetActiveOrg.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/authGetActiveOrg.d.ts +7 -0
- package/esm/mcp-server/tools/authGetActiveOrg.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGetActiveOrg.js +32 -0
- package/esm/mcp-server/tools/authGetActiveOrg.js.map +1 -0
- package/esm/models/authgetactiveorgop.d.ts +6 -0
- package/esm/models/authgetactiveorgop.d.ts.map +1 -0
- package/esm/models/authgetactiveorgop.js +11 -0
- package/esm/models/authgetactiveorgop.js.map +1 -0
- package/esm/models/requestauthgetactiveorg.d.ts +8 -0
- package/esm/models/requestauthgetactiveorg.d.ts.map +1 -0
- package/esm/models/requestauthgetactiveorg.js +9 -0
- package/esm/models/requestauthgetactiveorg.js.map +1 -0
- package/esm/models/responseauthgetactiveorg.d.ts +21 -0
- package/esm/models/responseauthgetactiveorg.d.ts.map +1 -0
- package/esm/models/responseauthgetactiveorg.js +21 -0
- package/esm/models/responseauthgetactiveorg.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/authGetActiveOrg.ts +141 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/authGetActiveOrg.ts +40 -0
- package/src/models/authgetactiveorgop.ts +21 -0
- package/src/models/requestauthgetactiveorg.ts +19 -0
- package/src/models/responseauthgetactiveorg.ts +42 -0
- package/src/tool-names.ts +4 -0
package/src/landing-page.ts
CHANGED
|
@@ -930,7 +930,7 @@ http_headers = { "bearer-auth" = "YOUR_BEARER_AUTH" }`;
|
|
|
930
930
|
<h1>Instructions</h1>
|
|
931
931
|
<p>One-click installation for Claude Desktop users</p>
|
|
932
932
|
<div class="instruction-item">
|
|
933
|
-
<a href="https://github.com/trycompai/compound/releases/download/v0.1.
|
|
933
|
+
<a href="https://github.com/trycompai/compound/releases/download/v0.1.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
934
934
|
📥 Download MCP Bundle
|
|
935
935
|
</a>
|
|
936
936
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -62,8 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "0.0.0",
|
|
65
|
-
sdkVersion: "0.1.
|
|
65
|
+
sdkVersion: "0.1.1",
|
|
66
66
|
genVersion: "2.884.11",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/mcp-typescript 0.1.
|
|
68
|
+
"speakeasy-sdk/mcp-typescript 0.1.1 2.884.11 0.0.0 @trycomp/compound-mcp",
|
|
69
69
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { tool$adminIsCurrentUserAdmin } from "./tools/adminIsCurrentUserAdmin.js
|
|
|
26
26
|
import { tool$adminListInvoicesForOrg } from "./tools/adminListInvoicesForOrg.js";
|
|
27
27
|
import { tool$adminListOrganizations } from "./tools/adminListOrganizations.js";
|
|
28
28
|
import { tool$apiKeysListForOrg } from "./tools/apiKeysListForOrg.js";
|
|
29
|
+
import { tool$authGetActiveOrg } from "./tools/authGetActiveOrg.js";
|
|
29
30
|
import { tool$authGetCurrentUser } from "./tools/authGetCurrentUser.js";
|
|
30
31
|
import { tool$codeSecurityAutofixCreateFixPullRequest } from "./tools/codeSecurityAutofixCreateFixPullRequest.js";
|
|
31
32
|
import { tool$codeSecurityDeepSecurityAuditLatestForRepo } from "./tools/codeSecurityDeepSecurityAuditLatestForRepo.js";
|
|
@@ -188,7 +189,7 @@ export function createMCPServer(deps: {
|
|
|
188
189
|
}) {
|
|
189
190
|
const server = new McpServer({
|
|
190
191
|
name: "CompAI",
|
|
191
|
-
version: "0.1.
|
|
192
|
+
version: "0.1.1",
|
|
192
193
|
});
|
|
193
194
|
|
|
194
195
|
const getClient = deps.getSDK || (() =>
|
|
@@ -242,6 +243,7 @@ export function createMCPServer(deps: {
|
|
|
242
243
|
tool(tool$adminDisableEntitlement);
|
|
243
244
|
tool(tool$adminIsCurrentUserAdmin);
|
|
244
245
|
tool(tool$authGetCurrentUser);
|
|
246
|
+
tool(tool$authGetActiveOrg);
|
|
245
247
|
tool(tool$complianceLibraryListFrameworks);
|
|
246
248
|
tool(tool$complianceLibraryGetFrameworkBySlug);
|
|
247
249
|
tool(tool$complianceLibraryListRequirementsForFramework);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authGetActiveOrg } from "../../funcs/authGetActiveOrg.js";
|
|
6
|
+
import { RequestAuthGetActiveOrg$zodSchema } from "../../models/requestauthgetactiveorg.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: RequestAuthGetActiveOrg$zodSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authGetActiveOrg: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-get-active-org",
|
|
15
|
+
description: `Calls a query at the path auth.js:getActiveOrg`,
|
|
16
|
+
annotations: {
|
|
17
|
+
"title": "",
|
|
18
|
+
"destructiveHint": false,
|
|
19
|
+
"idempotentHint": false,
|
|
20
|
+
"openWorldHint": false,
|
|
21
|
+
"readOnlyHint": false,
|
|
22
|
+
},
|
|
23
|
+
args,
|
|
24
|
+
tool: async (client, args, ctx) => {
|
|
25
|
+
const [result] = await authGetActiveOrg(
|
|
26
|
+
client,
|
|
27
|
+
args.request,
|
|
28
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
29
|
+
).$inspect();
|
|
30
|
+
|
|
31
|
+
if (!result.ok) {
|
|
32
|
+
return {
|
|
33
|
+
content: [{ type: "text", text: result.error.message }],
|
|
34
|
+
isError: true,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return formatResult(result.value);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { FailedResponse, FailedResponse$zodSchema } from "./failedresponse.js";
|
|
7
|
+
import {
|
|
8
|
+
ResponseAuthGetActiveOrg,
|
|
9
|
+
ResponseAuthGetActiveOrg$zodSchema,
|
|
10
|
+
} from "./responseauthgetactiveorg.js";
|
|
11
|
+
|
|
12
|
+
export type AuthGetActiveOrgResponse =
|
|
13
|
+
| ResponseAuthGetActiveOrg
|
|
14
|
+
| FailedResponse;
|
|
15
|
+
|
|
16
|
+
export const AuthGetActiveOrgResponse$zodSchema: z.ZodType<
|
|
17
|
+
AuthGetActiveOrgResponse
|
|
18
|
+
> = z.union([
|
|
19
|
+
ResponseAuthGetActiveOrg$zodSchema,
|
|
20
|
+
FailedResponse$zodSchema,
|
|
21
|
+
]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type RequestAuthGetActiveOrgArgs = {};
|
|
8
|
+
|
|
9
|
+
export const RequestAuthGetActiveOrgArgs$zodSchema: z.ZodType<
|
|
10
|
+
RequestAuthGetActiveOrgArgs
|
|
11
|
+
> = z.object({});
|
|
12
|
+
|
|
13
|
+
export type RequestAuthGetActiveOrg = { args: RequestAuthGetActiveOrgArgs };
|
|
14
|
+
|
|
15
|
+
export const RequestAuthGetActiveOrg$zodSchema: z.ZodType<
|
|
16
|
+
RequestAuthGetActiveOrg
|
|
17
|
+
> = z.object({
|
|
18
|
+
args: z.lazy(() => RequestAuthGetActiveOrgArgs$zodSchema),
|
|
19
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ResponseAuthGetActiveOrgStatus = {
|
|
9
|
+
Success: "success",
|
|
10
|
+
Error: "error",
|
|
11
|
+
} as const;
|
|
12
|
+
export type ResponseAuthGetActiveOrgStatus = ClosedEnum<
|
|
13
|
+
typeof ResponseAuthGetActiveOrgStatus
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
export const ResponseAuthGetActiveOrgStatus$zodSchema = z.enum([
|
|
17
|
+
"success",
|
|
18
|
+
"error",
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
export type ResponseAuthGetActiveOrgErrorData = {};
|
|
22
|
+
|
|
23
|
+
export const ResponseAuthGetActiveOrgErrorData$zodSchema: z.ZodType<
|
|
24
|
+
ResponseAuthGetActiveOrgErrorData
|
|
25
|
+
> = z.object({});
|
|
26
|
+
|
|
27
|
+
export type ResponseAuthGetActiveOrg = {
|
|
28
|
+
status: ResponseAuthGetActiveOrgStatus;
|
|
29
|
+
errorMessage?: string | undefined;
|
|
30
|
+
errorData?: ResponseAuthGetActiveOrgErrorData | undefined;
|
|
31
|
+
value?: any | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const ResponseAuthGetActiveOrg$zodSchema: z.ZodType<
|
|
35
|
+
ResponseAuthGetActiveOrg
|
|
36
|
+
> = z.object({
|
|
37
|
+
errorData: z.lazy(() => ResponseAuthGetActiveOrgErrorData$zodSchema)
|
|
38
|
+
.optional(),
|
|
39
|
+
errorMessage: z.string().optional(),
|
|
40
|
+
status: ResponseAuthGetActiveOrgStatus$zodSchema,
|
|
41
|
+
value: z.any().optional(),
|
|
42
|
+
});
|
package/src/tool-names.ts
CHANGED
|
@@ -36,6 +36,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
36
36
|
"name": "auth-get-current-user",
|
|
37
37
|
"description": "Calls a query at the path auth.js:getCurrentUser"
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"name": "auth-get-active-org",
|
|
41
|
+
"description": "Calls a query at the path auth.js:getActiveOrg"
|
|
42
|
+
},
|
|
39
43
|
{
|
|
40
44
|
"name": "compliance-library-list-frameworks",
|
|
41
45
|
"description": "Calls a query at the path compliance/library.js:listFrameworks"
|