@glie/mcp-polaris 0.22.0 → 0.23.0
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 +38 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var INLINE_MIMES = new Set([
|
|
|
30
30
|
]);
|
|
31
31
|
|
|
32
32
|
// ../../src/mcp/index.ts
|
|
33
|
-
var VERSION = "0.
|
|
33
|
+
var VERSION = "0.23.0";
|
|
34
34
|
var FRAMEWORK_KEY_DOC = "optional \u2014 a key from polaris.framework.list. Leave it out when none applies: a framework is for founding a large domain, and most milestones take none. An unknown key is refused (400) with the keys that exist.";
|
|
35
35
|
var BASE = process.env.POLARIS_URL ?? "http://127.0.0.1:7843";
|
|
36
36
|
var TOKEN = process.env.POLARIS_TOKEN ?? "";
|
|
@@ -503,6 +503,8 @@ var TOOLS = [
|
|
|
503
503
|
link_url: strSchema("mkt: WHERE THE PIECE SENDS THE READER \u2014 the full URL, tracking parameters already in " + "it. Required on a PAID piece: the network does not create an ad without a " + "destination, and the click leaves through the ad itself. On an organic piece it is " + "optional, because there the link travels in the body text."),
|
|
504
504
|
output_type: strSchema("pr|post|video|email|generic \u2014 the delivery medium. Omit it: the format decides (reel/v\xEDdeo/short \u2192 video). Only pass it to override."),
|
|
505
505
|
scheduled_date: strSchema("mkt: publish day (ISO date) \u2014 the calendar slot"),
|
|
506
|
+
publish_time: strSchema("mkt: the hour it publishes (HH:MM), when it is already known \u2014 needs scheduled_date and publish_tz"),
|
|
507
|
+
publish_tz: strSchema("mkt: whose clock publish_time is in (IANA zone, e.g. America/Sao_Paulo) \u2014 required with publish_time"),
|
|
506
508
|
platform: strSchema("mkt: ad platform if this creative is individually paid"),
|
|
507
509
|
asset_url: strSchema("mkt: URL of the produced creative asset (image/video) for the reviewer")
|
|
508
510
|
}, ["name"]),
|
|
@@ -615,7 +617,7 @@ var TOOLS = [
|
|
|
615
617
|
},
|
|
616
618
|
{
|
|
617
619
|
name: "polaris.task.unschedule",
|
|
618
|
-
description: "Unschedule a mkt creative: agendado \u2192
|
|
620
|
+
description: "Unschedule a mkt creative: agendado \u2192 release. Refused once the post is live. The creative is back where scheduling took it from \u2014 approved, ready to go out, no hour handed to the publisher \u2014 to edit, schedule again, or publish now. Its hour stays unless it has passed.",
|
|
619
621
|
inputSchema: objSchema({ id: intSchema() }, ["id"]),
|
|
620
622
|
call: async (args) => (await apiCall("POST", `/api/tasks/${args.id}/unschedule`)).body
|
|
621
623
|
},
|
|
@@ -1130,6 +1132,40 @@ var TOOLS = [
|
|
|
1130
1132
|
inputSchema: objSchema({ id: intSchema("credential id") }, ["id"]),
|
|
1131
1133
|
call: async (args) => (await apiCall("POST", `/api/org-credentials/${args.id}/verify`, {})).body
|
|
1132
1134
|
},
|
|
1135
|
+
{
|
|
1136
|
+
name: "polaris.usage_account.list",
|
|
1137
|
+
description: "The Claude and Codex accounts the agents are logged into, and how much of each Polaris may spend (B45). Per account: the limits (week, 5-hour window where the provider has one, and week marks \u2014 'by the end of <day>, the week at most X%'), the last reading the provider gave (the % used of the WHOLE account, people included), the week's days in the provider's order, and `held` when the account is stopped and until when. Above the week limit is only for people; below it, people and Polaris share.",
|
|
1138
|
+
inputSchema: objSchema({}),
|
|
1139
|
+
call: async () => (await apiCall("GET", "/api/usage-accounts")).body
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
name: "polaris.usage_account.update",
|
|
1143
|
+
description: "Change an account's usage limits (human-only, admin or manager). Each limit is a whole percent 1\u2013100, or null for off. `marks` REPLACES every mark \u2014 send the full list, one per day (sun mon tue wed thu fri sat). Lowering a limit under what is already used stops the agents on that account at once; raising it lets them go. A limit is a brake, not a guarantee: Polaris reads the account only when it calls the provider (at least every 2 minutes during a long run), and people using the same account outside Polaris count too, so usage can pass a limit before it is seen. Set limits with room, well below where running out would hurt.",
|
|
1144
|
+
inputSchema: objSchema({
|
|
1145
|
+
id: intSchema("usage account id (from polaris.usage_account.list)"),
|
|
1146
|
+
week_limit_pct: {
|
|
1147
|
+
type: ["integer", "null"],
|
|
1148
|
+
description: "1\u2013100, or null for no week limit"
|
|
1149
|
+
},
|
|
1150
|
+
five_hour_limit_pct: {
|
|
1151
|
+
type: ["integer", "null"],
|
|
1152
|
+
description: "1\u2013100, or null for no 5-hour limit"
|
|
1153
|
+
},
|
|
1154
|
+
marks_on: { type: "boolean", description: "pause the marks without losing them" },
|
|
1155
|
+
marks: {
|
|
1156
|
+
type: "array",
|
|
1157
|
+
description: "every mark, replacing the current ones",
|
|
1158
|
+
items: objSchema({
|
|
1159
|
+
until: strSchema("sun \xB7 mon \xB7 tue \xB7 wed \xB7 thu \xB7 fri \xB7 sat"),
|
|
1160
|
+
pct: intSchema("1\u2013100")
|
|
1161
|
+
}, ["until", "pct"])
|
|
1162
|
+
}
|
|
1163
|
+
}, ["id"]),
|
|
1164
|
+
call: async (args) => {
|
|
1165
|
+
const { id, ...patch } = args;
|
|
1166
|
+
return (await apiCall("PATCH", `/api/usage-accounts/${id}`, patch)).body;
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1133
1169
|
{
|
|
1134
1170
|
name: "polaris.presence.add",
|
|
1135
1171
|
description: "Add a place to a project (human-only). kind: channel (we publish there) | listing (we keep an entry there). Idempotent on slug + MARKET: adding Instagram BR twice is the same Instagram BR, and Instagram US is a different presence. Never send a password you were not given.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glie/mcp-polaris",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Model Context Protocol (stdio) server exposing Polaris, glie's ops platform, as native tools in Claude Code and any MCP client.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "glie <carlos@glie.ai>",
|