@c3-oss/mcp-plane 0.0.2

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/LICENSE ADDED
@@ -0,0 +1,115 @@
1
+ CC0 1.0 Universal
2
+
3
+ Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an "owner") of an original work of
8
+ authorship and/or a database (each, a "Work").
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific
12
+ works ("Commons") that the public can reliably and without fear of later
13
+ claims of infringement build upon, modify, incorporate in other works, reuse
14
+ and redistribute as freely as possible in any form whatsoever and for any
15
+ purposes, including without limitation commercial purposes. These owners may
16
+ contribute to the Commons to promote the ideal of a free culture and the
17
+ further production of cultural and scientific works, or to gain reputation or
18
+ greater distribution for the Work in part through the use and efforts of
19
+ others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation
22
+ of additional consideration or compensation, the person associating CC0 with a
23
+ Work (the "Affirmer"), to the extent that they are an owner of Copyright and
24
+ Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
25
+ publicly distribute the Work under its terms, with knowledge of their Copyright
26
+ and Related Rights in the Work and the meaning and intended legal effect of
27
+ CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights ("Copyright and
31
+ Related Rights"). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+
34
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
35
+ and translate a Work;
36
+
37
+ ii. moral rights retained by the original author(s) and/or performer(s);
38
+
39
+ iii. publicity and privacy rights pertaining to a person's image or likeness
40
+ depicted in a Work;
41
+
42
+ iv. rights protecting against unfair competition in regards to a Work,
43
+ subject to the limitations in paragraph 4(a), below;
44
+
45
+ v. rights protecting the extraction, dissemination, use and reuse of data in
46
+ a Work;
47
+
48
+ vi. database rights (such as those arising under Directive 96/9/EC of the
49
+ European Parliament and of the Council of 11 March 1996 on the legal
50
+ protection of databases, and under any national implementation thereof,
51
+ including any amended or successor version of such directive); and
52
+
53
+ vii. other similar, equivalent or corresponding rights throughout the world
54
+ based on applicable law or treaty, and any national implementations thereof.
55
+
56
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
57
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59
+ and Related Rights and associated claims and causes of action, whether now
60
+ known or unknown (including existing as well as future claims and causes of
61
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
62
+ duration provided by applicable law or treaty (including future time
63
+ extensions), (iii) in any current or future medium and for any number of
64
+ copies, and (iv) for any purpose whatsoever, including without limitation
65
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66
+ the Waiver for the benefit of each member of the public at large and to the
67
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
68
+ shall not be subject to revocation, rescission, cancellation, termination, or
69
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
70
+ by the public as contemplated by Affirmer's express Statement of Purpose.
71
+
72
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
73
+ judged legally invalid or ineffective under applicable law, then the Waiver
74
+ shall be preserved to the maximum extent permitted taking into account
75
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76
+ is so judged Affirmer hereby grants to each affected person a royalty-free, non
77
+ transferable, non sublicensable, non exclusive, irrevocable and unconditional
78
+ license to exercise Affirmer's Copyright and Related Rights in the Work (i) in
79
+ all territories worldwide, (ii) for the maximum duration provided by
80
+ applicable law or treaty (including future time extensions), (iii) in any
81
+ current or future medium and for any number of copies, and (iv) for any
82
+ purpose whatsoever, including without limitation commercial, advertising or
83
+ promotional purposes (the "License"). The License shall be deemed effective as
84
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
85
+ License for any reason be judged legally invalid or ineffective, such partial
86
+ invalidity or ineffectiveness shall not invalidate the remainder of the
87
+ License, and in such case Affirmer hereby affirms that they will not (i)
88
+ exercise any of their remaining Copyright and Related Rights in the Work or
89
+ (ii) assert any associated claims and causes of action with respect to the
90
+ Work, in either case contrary to Affirmer's express Statement of Purpose.
91
+
92
+ 4. Limitations and Disclaimers.
93
+
94
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
95
+ surrendered, licensed or otherwise affected by this document.
96
+
97
+ b. Affirmer offers the Work as-is and makes no representations or warranties
98
+ of any kind concerning the Work, express, implied, statutory or otherwise,
99
+ including without limitation warranties of title, merchantability, fitness
100
+ for a particular purpose, non infringement, or the absence of latent or
101
+ other defects, accuracy, or the present or absence of errors, whether or not
102
+ discoverable, all to the greatest extent permissible under applicable law.
103
+
104
+ c. Affirmer disclaims responsibility for clearing rights of other persons
105
+ that may apply to the Work or any use thereof, including without limitation
106
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
107
+ disclaims responsibility for obtaining any necessary consents, permissions or
108
+ other rights required for any use of the Work.
109
+
110
+ d. Affirmer understands and acknowledges that Creative Commons is not a party
111
+ to this document and has no duty or obligation with respect to this CC0 or
112
+ use of the Work.
113
+
114
+ For more information, please see
115
+ <http://creativecommons.org/publicdomain/zero/1.0/>
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @c3-oss/mcp-plane
2
+
3
+ MCP server (stdio) exposing the [Plane](https://plane.so) REST API as
4
+ tools so an MCP client can drive Plane directly.
5
+
6
+ ```sh
7
+ npx -y @c3-oss/mcp-plane
8
+ ```
9
+
10
+ Or install globally:
11
+
12
+ ```sh
13
+ npm install -g @c3-oss/mcp-plane
14
+ mcp-plane
15
+ ```
16
+
17
+ `mcp-plane` is a small JavaScript shim that delegates to the prebuilt
18
+ Go binary matching your platform, distributed through npm
19
+ `optionalDependencies`. There is no `postinstall` download — npm
20
+ filters by `os` and `cpu` and only installs the sub-package your
21
+ machine needs.
22
+
23
+ Supported platforms:
24
+
25
+ - macOS arm64 / amd64
26
+ - Linux amd64 / arm64
27
+
28
+ Configure with three environment variables (`PLANE_BASE_URL`,
29
+ `PLANE_API_TOKEN`, `PLANE_WORKSPACE`) and register the command in your
30
+ MCP client. See the
31
+ [main README](https://github.com/c3-oss/mcp-plane#readme) for client
32
+ config examples and the
33
+ [full tools list](https://github.com/c3-oss/mcp-plane/blob/master/docs/tools.md).
34
+
35
+ Source code, documentation, and issue tracker:
36
+ <https://github.com/c3-oss/mcp-plane>
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env node
2
+ // @c3-oss/mcp-plane CLI shim.
3
+ //
4
+ // At install time npm picks the @c3-oss/mcp-plane-<platform>-<arch>
5
+ // optionalDependency that matches the user's machine and skips
6
+ // the others. This script resolves whichever sub-package landed
7
+ // and runs its binary as a child process with the same argv.
8
+ //
9
+ // Signals (SIGINT/SIGTERM/SIGHUP) are explicitly forwarded so a
10
+ // Ctrl+C at the npm wrapper level reaches the Go binary instead of
11
+ // leaving an orphan; the exit code or terminating signal is then
12
+ // re-raised on this process so the parent shell still sees a
13
+ // faithful exit status.
14
+
15
+ import { spawn } from "node:child_process";
16
+ import { createRequire } from "node:module";
17
+
18
+ const require = createRequire(import.meta.url);
19
+
20
+ const archAliases = {
21
+ x64: "amd64",
22
+ };
23
+ const packageArch = archAliases[process.arch] ?? process.arch;
24
+ const subpkg = `@c3-oss/mcp-plane-${process.platform}-${packageArch}`;
25
+
26
+ let binary;
27
+ try {
28
+ binary = require.resolve(`${subpkg}/bin/mcp-plane`);
29
+ } catch {
30
+ console.error(
31
+ `mcp-plane: no binary for ${process.platform}/${process.arch}.\n` +
32
+ `Expected optionalDependency ${subpkg} to be installed.\n` +
33
+ `Supported platforms: darwin-arm64, darwin-amd64, linux-amd64, linux-arm64.`,
34
+ );
35
+ process.exit(1);
36
+ }
37
+
38
+ const child = spawn(binary, process.argv.slice(2), { stdio: "inherit" });
39
+
40
+ for (const sig of ["SIGINT", "SIGTERM", "SIGHUP"]) {
41
+ process.on(sig, () => child.kill(sig));
42
+ }
43
+
44
+ child.on("exit", (code, signal) => {
45
+ if (signal) {
46
+ process.kill(process.pid, signal);
47
+ } else {
48
+ process.exit(code ?? 1);
49
+ }
50
+ });
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@c3-oss/mcp-plane",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "description": "MCP server (stdio) exposing the Plane REST API as tools",
6
+ "homepage": "https://github.com/c3-oss/mcp-plane",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/c3-oss/mcp-plane.git"
10
+ },
11
+ "license": "CC0-1.0",
12
+ "bin": {
13
+ "mcp-plane": "bin/mcp-plane.js"
14
+ },
15
+ "files": [
16
+ "bin/mcp-plane.js",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "optionalDependencies": {
21
+ "@c3-oss/mcp-plane-darwin-arm64": "0.0.2",
22
+ "@c3-oss/mcp-plane-darwin-amd64": "0.0.2",
23
+ "@c3-oss/mcp-plane-linux-amd64": "0.0.2",
24
+ "@c3-oss/mcp-plane-linux-arm64": "0.0.2"
25
+ },
26
+ "engines": {
27
+ "node": ">=22"
28
+ },
29
+ "keywords": [
30
+ "mcp",
31
+ "model-context-protocol",
32
+ "plane",
33
+ "plane.so",
34
+ "claude",
35
+ "cli"
36
+ ]
37
+ }