@koonwang03/my-pi 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/main.d.ts +10 -0
- package/dist/main.js +35709 -0
- package/dist/main.js.map +7 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BoxBoxmari
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# my-pi
|
|
2
|
+
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://www.npmjs.com/package/@koonwang03/my-pi"><img src="https://img.shields.io/npm/v/%40koonwang03%2Fmy-pi?label=npm&logo=npm" alt="npm version" /></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@koonwang03/my-pi"><img src="https://img.shields.io/npm/dm/%40koonwang03%2Fmy-pi?label=downloads&logo=npm" alt="npm downloads" /></a>
|
|
6
|
+
<a href="https://github.com/BoxBoxmari/my-pi/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://github.com/BoxBoxmari/my-pi/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI status" /></a>
|
|
7
|
+
<a href="https://github.com/BoxBoxmari/my-pi/blob/main/LICENSE"><img src="https://img.shields.io/github/license/BoxBoxmari/my-pi" alt="License" /></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
`my-pi` is a local-first Model Context Protocol server for safe workspace inspection, search, AST queries, language-server navigation, and version-control diagnostics.
|
|
11
|
+
|
|
12
|
+
## Install and run
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g @koonwang03/my-pi
|
|
16
|
+
my-pi-mcp --workspace /path/to/project
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The package includes the bundled MCP executable and its runtime dependencies. Language-server integrations for TypeScript, Python, Rust, and Go use compatible server executables that must be installed separately in the host environment when those features are needed.
|
|
20
|
+
|
|
21
|
+
The primary executable is `my-pi-mcp`; `ccr-mcp` is retained as a compatibility alias.
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export interface CliOptions {
|
|
3
|
+
command: "mcp" | "host-config";
|
|
4
|
+
workspace?: string;
|
|
5
|
+
profileId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseArgs(argv: string[]): CliOptions;
|
|
8
|
+
export declare function runHostConfig(profileId: string | undefined): Promise<void>;
|
|
9
|
+
export declare function runMcp(workspace: string | undefined): Promise<void>;
|
|
10
|
+
export declare function main(argv?: string[]): Promise<void>;
|