building-standards-act-mcp 0.5.1 → 0.5.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/README.md +13 -26
- package/dist/index.js +0 -0
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ Vercel にデプロイすると、ChatGPT・Claude.ai・Gemini CLI からすぐ
|
|
|
52
52
|
2. [claude.ai](https://claude.ai) → プロフィールアイコン → Settings → Connectors
|
|
53
53
|
3. 「Add custom connector」をクリック
|
|
54
54
|
4. URL に `https://your-app.vercel.app/api/mcp`(your-app をデプロイ先に置換)を入力
|
|
55
|
-
5. チャットで「+」→「Connectors」→ building-
|
|
55
|
+
5. チャットで「+」→「Connectors」→ building-standards-act を有効化
|
|
56
56
|
6. 「建築基準法第20条を教えて」と質問
|
|
57
57
|
|
|
58
58
|
> 参考: [Get started with custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)
|
|
@@ -64,7 +64,7 @@ Vercel にデプロイすると、ChatGPT・Claude.ai・Gemini CLI からすぐ
|
|
|
64
64
|
```json
|
|
65
65
|
{
|
|
66
66
|
"mcpServers": {
|
|
67
|
-
"building-
|
|
67
|
+
"building-standards-act": {
|
|
68
68
|
"httpUrl": "https://your-app.vercel.app/api/mcp"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -99,7 +99,7 @@ npx -y building-standards-act-mcp
|
|
|
99
99
|
```json
|
|
100
100
|
{
|
|
101
101
|
"mcpServers": {
|
|
102
|
-
"building-
|
|
102
|
+
"building-standards-act": {
|
|
103
103
|
"command": "npx",
|
|
104
104
|
"args": ["-y", "building-standards-act-mcp"]
|
|
105
105
|
}
|
|
@@ -110,7 +110,7 @@ npx -y building-standards-act-mcp
|
|
|
110
110
|
### Claude Code
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
claude mcp add building-
|
|
113
|
+
claude mcp add building-standards-act -- npx -y building-standards-act-mcp
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
#### Windows + VS Code 拡張機能の場合
|
|
@@ -118,40 +118,27 @@ claude mcp add building-law -- npx -y building-standards-act-mcp
|
|
|
118
118
|
VS Code 拡張機能では `npx` 経由の起動が `Connection closed` エラーになる場合があります。
|
|
119
119
|
プロジェクトルートに `.mcp.json` を作成してください。
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
```json
|
|
124
|
-
{
|
|
125
|
-
"mcpServers": {
|
|
126
|
-
"building-law": {
|
|
127
|
-
"command": "cmd",
|
|
128
|
-
"args": ["/c", "npx", "-y", "building-standards-act-mcp"]
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**フォールバック: `node.exe` フルパス方式**
|
|
135
|
-
|
|
136
|
-
上記で解消しない場合は、グローバルインストール後に `node.exe` で直接指定してください。
|
|
121
|
+
**Step 1: グローバルインストール**
|
|
137
122
|
|
|
138
123
|
```bash
|
|
139
124
|
npm install -g building-standards-act-mcp
|
|
140
125
|
```
|
|
141
126
|
|
|
142
|
-
|
|
127
|
+
**Step 2: パスの確認**
|
|
143
128
|
|
|
144
129
|
```bash
|
|
145
|
-
where node # → node.exe
|
|
130
|
+
where node # → node.exe のフルパス(例: C:\Program Files\nodejs\node.exe)
|
|
146
131
|
npm root -g # → グローバル node_modules のパス
|
|
147
132
|
```
|
|
148
133
|
|
|
149
|
-
`.mcp.json`
|
|
134
|
+
**Step 3: `.mcp.json` を作成**
|
|
135
|
+
|
|
136
|
+
取得したパスで置き換えてください(パス区切りは `/` を使用):
|
|
150
137
|
|
|
151
138
|
```json
|
|
152
139
|
{
|
|
153
140
|
"mcpServers": {
|
|
154
|
-
"building-
|
|
141
|
+
"building-standards-act": {
|
|
155
142
|
"command": "<where node の出力>",
|
|
156
143
|
"args": ["<npm root -g の出力>/building-standards-act-mcp/dist/index.js"]
|
|
157
144
|
}
|
|
@@ -173,7 +160,7 @@ npm run build
|
|
|
173
160
|
```json
|
|
174
161
|
{
|
|
175
162
|
"mcpServers": {
|
|
176
|
-
"building-
|
|
163
|
+
"building-standards-act": {
|
|
177
164
|
"command": "node",
|
|
178
165
|
"args": ["/path/to/building-standards-act-mcp/dist/index.js"]
|
|
179
166
|
}
|
|
@@ -563,7 +550,7 @@ e-Gov API は告示を収録していないため、`get_kokuji` は国土交通
|
|
|
563
550
|
```json
|
|
564
551
|
{
|
|
565
552
|
"mcpServers": {
|
|
566
|
-
"building-
|
|
553
|
+
"building-standards-act": {
|
|
567
554
|
"command": "npx",
|
|
568
555
|
"args": ["-y", "building-standards-act-mcp"],
|
|
569
556
|
"env": {
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/server.js
CHANGED
|
@@ -11,7 +11,7 @@ import { registerSuggestRelatedTool } from "./tools/suggest-related.js";
|
|
|
11
11
|
import { registerAnalyzeArticleTool } from "./tools/analyze-article.js";
|
|
12
12
|
import { registerGetMetricsTool } from "./tools/get-metrics.js";
|
|
13
13
|
const SERVER_NAME = "building-standards-act-mcp";
|
|
14
|
-
const SERVER_VERSION = "0.5.
|
|
14
|
+
const SERVER_VERSION = "0.5.2";
|
|
15
15
|
const INSTRUCTIONS = `あなたは建築確認申請の法規照合アシスタントです。
|
|
16
16
|
|
|
17
17
|
## 利用可能なツール
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "building-standards-act-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "MCP server for Japanese building regulations — fetches law text from e-Gov API v2 to prevent AI hallucination in building permit reviews",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|