@gloriginmind/mcp 0.1.2 → 0.1.3
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/tools.d.ts +2 -0
- package/dist/tools.js +2 -2
- package/package.json +16 -1
package/dist/tools.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type ToolAuthContext = {
|
|
|
5
5
|
getAuthorizationHeader?: () => string | null | undefined;
|
|
6
6
|
/** Per-request X-OriAI-Api-Key (HTTP / Cursor headers). */
|
|
7
7
|
getApiKeyHeader?: () => string | null | undefined;
|
|
8
|
+
/** Override API base URL (orchestrator self-call / local). */
|
|
9
|
+
baseUrl?: string;
|
|
8
10
|
};
|
|
9
11
|
/** Zod shapes exported for unit tests. */
|
|
10
12
|
export declare const toolSchemas: {
|
package/dist/tools.js
CHANGED
|
@@ -16,7 +16,7 @@ function clientFor(ctx) {
|
|
|
16
16
|
});
|
|
17
17
|
if ("error" in auth)
|
|
18
18
|
return { error: MISSING_KEY_MESSAGE };
|
|
19
|
-
return new OriginMindClient(auth);
|
|
19
|
+
return new OriginMindClient(auth, ctx.baseUrl);
|
|
20
20
|
}
|
|
21
21
|
async function runTool(ctx, fn) {
|
|
22
22
|
const client = clientFor(ctx);
|
|
@@ -106,7 +106,7 @@ export const toolSchemas = {
|
|
|
106
106
|
export function createServer(authCtx = {}) {
|
|
107
107
|
const server = new McpServer({
|
|
108
108
|
name: "originmind",
|
|
109
|
-
version: "0.1.
|
|
109
|
+
version: "0.1.3",
|
|
110
110
|
});
|
|
111
111
|
server.tool("list_projects", "List OriginMind projects for the authenticated user (GET /api/v1/projects).", toolSchemas.list_projects.shape, async () => runTool(authCtx, (c) => c.get("/api/v1/projects")));
|
|
112
112
|
server.tool("search_creative_dna", "Search Creative DNA for a project (POST /api/v1/projects/{id}/query).", toolSchemas.search_creative_dna.shape, async (args) => runTool(authCtx, (c) => c.post(`/api/v1/projects/${encodeURIComponent(args.project_id)}/query`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gloriginmind/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "OriginMind MCP server — dual-auth skill routes via Bootstrap OAuth API key",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,6 +9,21 @@
|
|
|
9
9
|
"originmind-mcp-http": "dist/http.js"
|
|
10
10
|
},
|
|
11
11
|
"main": "./dist/stdio.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/stdio.js",
|
|
14
|
+
"./server": {
|
|
15
|
+
"types": "./dist/tools.d.ts",
|
|
16
|
+
"import": "./dist/tools.js"
|
|
17
|
+
},
|
|
18
|
+
"./auth": {
|
|
19
|
+
"types": "./dist/auth.d.ts",
|
|
20
|
+
"import": "./dist/auth.js"
|
|
21
|
+
},
|
|
22
|
+
"./client": {
|
|
23
|
+
"types": "./dist/client.d.ts",
|
|
24
|
+
"import": "./dist/client.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
12
27
|
"files": [
|
|
13
28
|
"dist",
|
|
14
29
|
"README.md"
|