@glie/mcp-polaris 0.22.2 → 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 +35 -1
- 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 ?? "";
|
|
@@ -1132,6 +1132,40 @@ var TOOLS = [
|
|
|
1132
1132
|
inputSchema: objSchema({ id: intSchema("credential id") }, ["id"]),
|
|
1133
1133
|
call: async (args) => (await apiCall("POST", `/api/org-credentials/${args.id}/verify`, {})).body
|
|
1134
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
|
+
},
|
|
1135
1169
|
{
|
|
1136
1170
|
name: "polaris.presence.add",
|
|
1137
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>",
|