projectpermit-mcp
ProjectPermit / BuildRequirements — フェーズ0
ProjectPermit は、建設および改修プロジェクト向けのエビデンス連携型自治体許可証プリフライトエンジンです。BuildRequirements は、その内部にある決定論的ルールエンジンです。
フェーズ0 では以下をサポートします:
gatineau_qcottawa_on8つのプロジェクトファミリー
自治体 GIS/ジオコーダーによる住所解決
ルールバージョンとオーバーレイを考慮した結果
すべてのルール結果に対する公式ソースのエビデンス
FastAPI エンドポイントと標準 MCP ツール
有料トランスポート層とルールエンジン間の x402 対応の分離
このエンジンは意図的に LLM を呼び出しません。呼び出し側エージェントが自然言語のスコープを構造化されたファクトに正規化し、BuildRequirements が決定論的な自治体ルールを適用します。
クイックスタート
python -m venv .venv
source .venv/bin/activate
pip install -e .
uvicorn projectpermit.api:app --host 127.0.0.1 --port 8000MCP サポートの場合:
pip install -e '.[mcp]'
projectpermit-mcpprojectpermit-mcp は、MCP Python SDK v2 Streamable HTTP、JSON レスポンス、およびステートレス HTTP を使用します。デフォルトでは 127.0.0.1:8001 で待ち受けます。PROJECTPERMIT_MCP_HOST と PROJECTPERMIT_MCP_PORT で上書きできます。
テストの実行:
PYTHONPATH=src python -m unittest discover -s tests -vRelated MCP server: Canadian Building Code MCP Server
API
POST /v1/check-project-requirements
例:
{
"jurisdiction": "ottawa_on",
"address": "110 Laurier Ave W, Ottawa, ON",
"resolve_address": false,
"project": {
"family": "window_door",
"action": "enlarge_existing_window",
"structural_change": true
}
}この結果はプリフライト情報パッケージであり、自治体の承認、法的アドバイス、エンジニアリング認定、または建築コードに基づく設計承認ではありません。
リポジトリマップ
src/projectpermit/engine.py— 決定論的ルールエンジンsrc/projectpermit/address.py— 自治体住所/GIS アダプターsrc/projectpermit/api.py— HTTP APIsrc/projectpermit/mcp_server.py— 標準 MCP サーバーdata/golden_cases.json— 決定論的リグレッションコーパスdata/source_manifest.json— 公式ソースレジストリ/鮮度メタデータschemas/— 公開リクエスト/レスポンススキーマdocs/PHASE0_SPEC.md— 製品およびエンジニアリングスコープdocs/X402_ARCHITECTURE.md— 決済/ディスカバリ設計
Base Sepolia x402 スモークプロファイル
公開値のみを含むテストネットプロファイルが config/x402.base-sepolia.env.example に用意されています。これは Base Sepolia(eip155:84532)と x402.org テストネットファシリテーターを対象としています。受信アドレスは公開されています。このリポジトリに秘密鍵やシードフレーズを絶対に置かないでください。
set -a
source config/x402.base-sepolia.env.example
set +a
pip install -e '.[x402]'
uvicorn projectpermit.api:app --host 0.0.0.0 --port 8000保護対象リソースは POST /v1/check-project-requirements です。/health はデプロイ監視用に無料のままです。
実際の有料スモークテスト
これはお使いのマシンでのみ実行してください。支払い者の秘密鍵はローカルに保管し、絶対に貼り付けたりコミットしたりしないでください。
python -m venv .venv-buyer
source .venv-buyer/bin/activate
pip install -e '.[buyer]'
export EVM_PRIVATE_KEY='0x...'
python scripts/x402_paid_smoke.py支払い者ウォレットには、$0.01 のテスト支払いに十分な Base Sepolia USDC が必要です。成功した実行では HTTP 200 とデコードされた決済レスポンスが返されるはずです。サーバー自体は支払い者の秘密鍵を必要としません。
フェーズ0 の安全境界
判定では、不確実性が存在する場合に LIKELY_REQUIRED、LIKELY_NOT_REQUIRED、ADDITIONAL_REVIEW_REQUIRED、MUNICIPAL_CONFIRMATION_REQUIRED などのプリフライト用語を意図的に使用します。このエンジンは、自治体、許可証発行機関、弁護士、建築家、またはエンジニアとして提示されるべきではありません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProfessional building code compliance assistant that interfaces with municipal building codes, helping contractors and builders navigate complex regulatory requirements with precision.1MIT
- AlicenseBqualityDmaintenanceEnables users to search and navigate over 22,500 indexed sections across 16 Canadian building codes and user guides. It supports keyword searches, hierarchy navigation, and optional full-text extraction from user-provided PDF documents.72MIT
- AlicenseAqualityDmaintenanceAI-powered property intelligence for instant zoning analysis, buildability assessments, ADU eligibility, flood risk, and development feasibility reports for any US address.51MIT
- AlicenseNot gradedqualityBmaintenanceEnables construction professionals to query project documents with conflict-aware RAG, detect contradictions, and trace change impacts through any MCP client.430MIT
Related MCP Connectors
Stateless advisor + validator for Conducted Development: kickoff, artifact validation, rule checks.
Author rules from policy docs, then decide: a Rete engine gives the verdict, an LLM explains why.
Resolve, search and verify legal citations against the official sources, with provenance.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChanghuLiu/projectpermit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server