@glie/mcp-manager 0.1.0 → 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 +16 -0
- package/dist/client.js +3 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,22 @@ notifications — as you.
|
|
|
31
31
|
The token acts as you, in its workspace, with your role and visibility. Everything it does shows in
|
|
32
32
|
the task activity as "you · via <token name>". Revoke it any time from the same page.
|
|
33
33
|
|
|
34
|
+
## What the agent sees when Manager says no
|
|
35
|
+
|
|
36
|
+
Every refusal comes back as a tool error that carries Manager's own status and reason, so the agent
|
|
37
|
+
can tell why and act on it:
|
|
38
|
+
|
|
39
|
+
| status | reason, for example | what it means |
|
|
40
|
+
|:---|:---|:---|
|
|
41
|
+
| 401 | `Invalid API token` | The token is unknown, revoked or expired, or you are no longer an active member. |
|
|
42
|
+
| 403 | `This token is read-only` | The token was created with read access; reading tools still work. |
|
|
43
|
+
| 403 | `Only admins can create contacts` | Your role in the workspace does not allow it, exactly as in the UI. |
|
|
44
|
+
| 404 | `Task not found` | It does not exist, or it is not visible to you. |
|
|
45
|
+
| 402 | `Your trial has ended…` | The workspace's plan stops the write, as in the UI. |
|
|
46
|
+
| 429 | `Too many requests for this API token…` | 600 requests per 15 minutes per token. |
|
|
47
|
+
|
|
48
|
+
`MANAGER_URL` may include a path when Manager is served under one, e.g. `https://example.com/manager`.
|
|
49
|
+
|
|
34
50
|
## Tools
|
|
35
51
|
|
|
36
52
|
`manager_me`, `manager_attention`, `manager_people_list`, `manager_contact_create`,
|
package/dist/client.js
CHANGED
|
@@ -13,7 +13,9 @@ export class ManagerClient {
|
|
|
13
13
|
this.fetchImpl = fetchImpl;
|
|
14
14
|
}
|
|
15
15
|
async request(method, path, options = {}) {
|
|
16
|
-
|
|
16
|
+
// Append to the base rather than resolve against it: `new URL("/api/x", base)` would drop a
|
|
17
|
+
// path the Manager is served under (https://host/manager → https://host/api/x).
|
|
18
|
+
const url = new URL(this.baseUrl.replace(/\/+$/, "") + path);
|
|
17
19
|
for (const [key, value] of Object.entries(options.query ?? {})) {
|
|
18
20
|
if (value !== undefined)
|
|
19
21
|
url.searchParams.set(key, String(value));
|
package/dist/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe } from "./client.js";
|
|
2
2
|
import { INSTRUCTIONS } from "./tools.js";
|
|
3
3
|
/** Keep in step with "version" in package.json on each release. */
|
|
4
|
-
export const SERVER_VERSION = "0.1.
|
|
4
|
+
export const SERVER_VERSION = "0.1.1";
|
|
5
5
|
const ok = (id, result) => ({
|
|
6
6
|
jsonrpc: "2.0",
|
|
7
7
|
id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glie/mcp-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Model Context Protocol (stdio) server exposing Manager, glie's tasks and meetings product, as native tools in Claude Code and any MCP client.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "glie <carlos@glie.ai>",
|