@socialproof/memory-mcp 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 +189 -0
- package/dist/bin/memory-mcp.d.ts +2 -0
- package/dist/bin/memory-mcp.js +3 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +61 -0
- package/dist/credentials.d.ts +21 -0
- package/dist/credentials.js +157 -0
- package/dist/errors.d.ts +26 -0
- package/dist/errors.js +57 -0
- package/dist/hosted.d.ts +15 -0
- package/dist/hosted.js +108 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +20 -0
- package/dist/oauth.d.ts +25 -0
- package/dist/oauth.js +104 -0
- package/dist/provisioning.d.ts +19 -0
- package/dist/provisioning.js +70 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +28 -0
- package/dist/signers.d.ts +119 -0
- package/dist/signers.js +323 -0
- package/dist/social-gateway.d.ts +195 -0
- package/dist/social-gateway.js +671 -0
- package/dist/tools.d.ts +29 -0
- package/dist/tools.js +1089 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.js +12 -0
- package/package.json +42 -0
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { toStructuredMcpError } from "./errors.js";
|
|
3
|
+
import type { SocialGateway } from "./social-gateway.js";
|
|
4
|
+
import type { AgentSignerProvisioner } from "./provisioning.js";
|
|
5
|
+
export interface MemoryClient {
|
|
6
|
+
rememberAndWait(text: string, subLabel?: string): Promise<unknown>;
|
|
7
|
+
recall(query: string, limit?: number): Promise<unknown>;
|
|
8
|
+
health(): Promise<unknown>;
|
|
9
|
+
destroy?(): void;
|
|
10
|
+
}
|
|
11
|
+
export interface ToolDependencies {
|
|
12
|
+
memory: MemoryClient;
|
|
13
|
+
social?: SocialGateway;
|
|
14
|
+
agentProvisioner?: AgentSignerProvisioner;
|
|
15
|
+
/** Omit for trusted local stdio. Hosted runtimes must supply verified OAuth scopes. */
|
|
16
|
+
oauthScopes?: ReadonlySet<string>;
|
|
17
|
+
}
|
|
18
|
+
export declare const TOOL_OAUTH_SCOPES: Readonly<Record<string, string>>;
|
|
19
|
+
export interface ToolSuccessEnvelope {
|
|
20
|
+
ok: true;
|
|
21
|
+
data: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface ToolErrorEnvelope {
|
|
24
|
+
ok: false;
|
|
25
|
+
error: ReturnType<typeof toStructuredMcpError>;
|
|
26
|
+
}
|
|
27
|
+
export type ToolEnvelope = ToolSuccessEnvelope | ToolErrorEnvelope;
|
|
28
|
+
export declare function createToolCatalog(socialToolNames?: readonly string[], oauthScopes?: ReadonlySet<string>): Tool[];
|
|
29
|
+
export declare function executeTool(name: string, args: Record<string, unknown>, dependencies: ToolDependencies): Promise<ToolEnvelope>;
|