@sendinel/mcp-server 1.0.84 → 1.0.85
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/build/tools/analytics.js +2 -2
- package/package.json +1 -1
package/build/tools/analytics.js
CHANGED
|
@@ -331,7 +331,6 @@ export function registerAnalyticsTools(server) {
|
|
|
331
331
|
description: 'List all projects accessible to this API key. Returns project ID, name, plan, and associated organization. Useful for orchestrators managing multiple products through a single Sendinel account.',
|
|
332
332
|
inputSchema: {},
|
|
333
333
|
}, async () => {
|
|
334
|
-
const projectId = getProjectId();
|
|
335
334
|
const ctx = requestContext();
|
|
336
335
|
if (ctx?.channel === 'mcp_oauth_session' && ctx.actorId) {
|
|
337
336
|
const [{ data: directAccess, error: directError }, { data: ownedOrgs, error: ownerError }] = await Promise.all([
|
|
@@ -384,10 +383,11 @@ export function registerAnalyticsTools(server) {
|
|
|
384
383
|
name: project.name,
|
|
385
384
|
org_id: project.org_id,
|
|
386
385
|
org_name: project.org_id ? orgNames.get(project.org_id) ?? null : null,
|
|
387
|
-
active: project.id === projectId,
|
|
386
|
+
active: project.id === ctx.projectId,
|
|
388
387
|
})),
|
|
389
388
|
});
|
|
390
389
|
}
|
|
390
|
+
const projectId = getProjectId();
|
|
391
391
|
// API keys are scoped to a single project, but an organization can have multiple projects.
|
|
392
392
|
// Look up the org for this project, then list all projects in that org.
|
|
393
393
|
const { data: project, error: projErr } = await adminDb()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendinel/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.85",
|
|
4
4
|
"description": "AI-controlled email operations control plane for campaigns, contacts, segments, analytics, and multi-provider sending via MCP.",
|
|
5
5
|
"mcpName": "ai.sendinel/mcp-server",
|
|
6
6
|
"type": "module",
|