agentc-mcp 0.0.0-stage → 0.2.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/README.md +23 -2
- package/bin/agentc.js +66 -0
- package/package.json +29 -4
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# agentc
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
npm wrapper for [agentc](https://github.com/lin-calvin/agentc) — a headless Wayland compositor
|
|
4
|
+
with an MCP server, built for agentic computer use.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx agentc-mcp daemon # start the compositor + MCP + panel
|
|
8
|
+
npx agentc-mcp status
|
|
9
|
+
npx agentc-mcp stop
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Point an MCP client at the relay (it starts the daemon on demand):
|
|
13
|
+
|
|
14
|
+
```jsonc
|
|
15
|
+
{ "mcp": { "agentc": { "type": "local", "command": ["npx", "-y", "agentc", "mcp"] } } }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The actual binary lives in a per-platform package (`agentc-mcp-linux-x64`, `agentc-mcp-linux-arm64`),
|
|
19
|
+
so only your platform is downloaded.
|
|
20
|
+
|
|
21
|
+
**Requirements:** Linux with glibc and `libxkbcommon` (present on any Wayland desktop), and
|
|
22
|
+
`/dev/…` access for the applications you want to drive. musl/Alpine is not supported yet.
|
|
23
|
+
|
|
24
|
+
See the main repository for tools, architecture, limits and measurements.
|
package/bin/agentc.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Thin launcher: picks the platform package that matches this machine and execs the
|
|
3
|
+
// real binary. The binary itself is shipped in an optionalDependency so npm's platform
|
|
4
|
+
// filtering takes care of the rest.
|
|
5
|
+
"use strict";
|
|
6
|
+
|
|
7
|
+
const { spawn } = require("node:child_process");
|
|
8
|
+
const path = require("node:path");
|
|
9
|
+
const fs = require("node:fs");
|
|
10
|
+
|
|
11
|
+
function platformPackage() {
|
|
12
|
+
if (process.platform !== "linux") {
|
|
13
|
+
return { error: `agentc is a Wayland compositor and only runs on Linux (got ${process.platform})` };
|
|
14
|
+
}
|
|
15
|
+
const arch = { x64: "x64", arm64: "arm64" }[process.arch];
|
|
16
|
+
if (!arch) return { error: `unsupported architecture: ${process.arch}` };
|
|
17
|
+
|
|
18
|
+
// musl (Alpine) needs a separate build; glibc is what we ship today.
|
|
19
|
+
const glibc = process.report?.getReport()?.header?.glibcVersionRuntime;
|
|
20
|
+
if (!glibc) {
|
|
21
|
+
return { error: "musl-based systems are not supported yet (glibc build only)" };
|
|
22
|
+
}
|
|
23
|
+
return { pkg: `agentc-mcp-linux-${arch}` };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function binaryPath(pkg) {
|
|
27
|
+
let pkgJson;
|
|
28
|
+
try {
|
|
29
|
+
pkgJson = require.resolve(`${pkg}/package.json`);
|
|
30
|
+
} catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return path.join(path.dirname(pkgJson), "bin", "agentc");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function main() {
|
|
37
|
+
const { pkg, error } = platformPackage();
|
|
38
|
+
if (error) {
|
|
39
|
+
console.error(`agentc: ${error}`);
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const bin = binaryPath(pkg);
|
|
44
|
+
if (!bin) {
|
|
45
|
+
console.error(
|
|
46
|
+
`agentc: platform package "${pkg}" is missing.\n` +
|
|
47
|
+
`Reinstall without --omit=optional, e.g. npm i -g agentc`
|
|
48
|
+
);
|
|
49
|
+
process.exit(1);
|
|
50
|
+
}
|
|
51
|
+
if (!fs.existsSync(bin)) {
|
|
52
|
+
console.error(`agentc: expected the binary at ${bin} but it is not there`);
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const child = spawn(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
57
|
+
for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
|
|
58
|
+
process.on(sig, () => child.kill(sig));
|
|
59
|
+
}
|
|
60
|
+
child.on("exit", (code, signal) => {
|
|
61
|
+
if (signal) process.kill(process.pid, signal);
|
|
62
|
+
else process.exit(code ?? 1);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentc-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Headless Wayland compositor with an MCP server, built for agentic computer use",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"wayland",
|
|
7
|
+
"compositor",
|
|
8
|
+
"mcp",
|
|
9
|
+
"computer-use",
|
|
10
|
+
"agent"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/lin-calvin/agentc",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/lin-calvin/agentc.git"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bin": {
|
|
19
|
+
"agentc": "bin/agentc.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin/agentc.js"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"agentc-mcp-linux-x64": "0.2.0",
|
|
29
|
+
"agentc-mcp-linux-arm64": "0.2.0"
|
|
30
|
+
}
|
|
31
|
+
}
|