bizgate-mcp-server 0.3.3 → 0.3.4
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 +6 -0
- package/dist/install-skill.d.ts +1 -1
- package/dist/install-skill.js +6 -2
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// ---------- --install-skill サブコマンド ----------
|
|
3
|
+
if (process.argv.includes("--install-skill")) {
|
|
4
|
+
const { main: installSkill } = await import("./install-skill.js");
|
|
5
|
+
installSkill();
|
|
6
|
+
process.exit(0);
|
|
7
|
+
}
|
|
2
8
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
9
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
10
|
import { z } from "zod";
|
package/dist/install-skill.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export
|
|
2
|
+
export declare function main(): void;
|
package/dist/install-skill.js
CHANGED
|
@@ -88,7 +88,7 @@ allowed-tools: mcp__bizgate__bizgate__department_search, mcp__bizgate__bizgate__
|
|
|
88
88
|
|
|
89
89
|
$ARGUMENTS
|
|
90
90
|
`;
|
|
91
|
-
function main() {
|
|
91
|
+
export function main() {
|
|
92
92
|
const existed = existsSync(join(SKILL_DIR, "SKILL.md"));
|
|
93
93
|
mkdirSync(SKILL_DIR, { recursive: true });
|
|
94
94
|
writeFileSync(join(SKILL_DIR, "SKILL.md"), SKILL_MD, "utf-8");
|
|
@@ -104,4 +104,8 @@ function main() {
|
|
|
104
104
|
console.log(" /prospect-match 会社名");
|
|
105
105
|
console.log(' または「○○にDigiManのサービスが売れそうな部署を探して」');
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
// 直接実行された場合のみ実行
|
|
108
|
+
const isDirectRun = process.argv[1]?.endsWith("install-skill.js");
|
|
109
|
+
if (isDirectRun) {
|
|
110
|
+
main();
|
|
111
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bizgate-mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "BizGate APIとClaudeを連携するMCPサーバー",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"bizgate-mcp-server": "dist/index.js"
|
|
9
|
-
"bizgate-install-skill": "dist/install-skill.js"
|
|
8
|
+
"bizgate-mcp-server": "dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"files": [
|
|
12
11
|
"dist"
|