Pmitz
Subscription plans, feature access and usage limits with Pmitz: a sandbox, or your own server.
使うべきか
品質と安全性
検出事項(1)
- LOWpmitz_update_subscription_status 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"pmitz": {
"command": "npx",
"args": [
"@terpomosoft/pmitz-mcp"
]
}
}
}実行可能なパッケージ
0.2.1stdioリモートエンドポイント
https://pmitz-mcp.web.app/mcpstreamable-httpできること
ツール一覧
ツール(14)
🟡pmitz_create_sandbox
Creates a new Pmitz sandbox and returns its sandbox key, its REST address and when it expires. A sandbox is a temporary Pmitz server for development and testing. It is deleted 72 hours after it is created and is not for production. It is not meant for personal or confidential information. Meant for when the user asks for a Pmitz sandbox or needs a server to develop against; one sandbox serves a whole conversation. The key is returned only once and is the only way back to the sandbox, so the user needs to see it.
入力スキーマ
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢pmitz_sandbox_status(sandbox)
Shows when a sandbox expires, which products it holds, how many subscriptions it has, and the REST address an application can call.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
}
},
"required": [
"sandbox"
],
"additionalProperties": false
}🟢pmitz_export_plans(sandbox)
Returns the product definitions of a sandbox (features, limits and plans) exactly as they were created, so they can be kept in source control and loaded into another Pmitz server. Subscriptions and recorded usage are not exported.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
}
},
"required": [
"sandbox"
],
"additionalProperties": false
}⚪pmitz_keep_sandbox(sandbox)
Keeps a sandbox for 30 days instead of 72 hours, for a user who signs in with GitHub. Optional: a sandbox works the same without it. Meant for when the user asks to keep a sandbox longer or to sign in. The first call returns a GitHub address and a short code for the user to enter there. A second call with the same sandbox key, after the user has entered the code, completes the sign-in. Only the public GitHub profile (username, name and company) is read.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
}
},
"required": [
"sandbox"
],
"additionalProperties": false
}🟢pmitz_verify_entitlement(sandbox, groupType, groupId, productId, featureId)
Checks whether a subject may use a feature. Returns featureAllowed and, on denial, the cause (INVALID_SUBSCRIPTION, PRODUCT_NOT_ALLOWED or FEATURE_NOT_ALLOWED). Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"groupType": {
"type": "string",
"enum": [
"subscriptions",
"users",
"directory-groups"
],
"description": "Kind of subject. Use \"subscriptions\" when access depends on a plan."
},
"groupId": {
"type": "string",
"description": "Identifier of the subscription, user or directory group."
},
"productId": {
"type": "string",
"description": "Product ID from the catalog."
},
"featureId": {
"type": "string",
"description": "Feature ID inside that product."
}
},
"required": [
"sandbox",
"groupId",
"productId",
"featureId"
],
"additionalProperties": false
}🟢pmitz_check_limits(sandbox, groupType, groupId, productId, featureId, ...)
Previews whether the requested units fit. Returns featureStatus (AVAILABLE, LIMIT_EXCEEDED or NOT_ALLOWED) and the units that would remain after the action. Nothing is reserved or recorded. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"groupType": {
"type": "string",
"enum": [
"subscriptions",
"users",
"directory-groups"
],
"description": "Kind of subject. Use \"subscriptions\" when access depends on a plan."
},
"groupId": {
"type": "string",
"description": "Identifier of the subscription, user or directory group."
},
"productId": {
"type": "string",
"description": "Product ID from the catalog."
},
"featureId": {
"type": "string",
"description": "Feature ID inside that product."
},
"units": {
"type": "object",
"description": "Units per limit ID, for example {\"monthly-exports\": 1}. Each value is a positive integer.",
"additionalProperties": {
"type": "integer",
"minimum": 1
}
}
},
"required": [
"sandbox",
"groupId",
"productId",
"featureId",
"units"
],
"additionalProperties": false
}🟢pmitz_get_remaining_limits(sandbox, groupType, groupId, productId, featureId)
Reads the remaining units of each limit of a feature for a subject. For a subscription the limits of its plan are applied. A negative value means usage is already above the limit. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"groupType": {
"type": "string",
"enum": [
"subscriptions",
"users",
"directory-groups"
],
"description": "Kind of subject. Use \"subscriptions\" when access depends on a plan."
},
"groupId": {
"type": "string",
"description": "Identifier of the subscription, user or directory group."
},
"productId": {
"type": "string",
"description": "Product ID from the catalog."
},
"featureId": {
"type": "string",
"description": "Feature ID inside that product."
}
},
"required": [
"sandbox",
"groupId",
"productId",
"featureId"
],
"additionalProperties": false
}🟢pmitz_find_subscription(sandbox, subscriptionId)
Reads a subscription: its status, expiration date and plan per product. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"subscriptionId": {
"type": "string",
"description": "Subscription ID."
}
},
"required": [
"sandbox",
"subscriptionId"
],
"additionalProperties": false
}🟡pmitz_create_product(sandbox, product)
Creates a product with its features, limits and plans. Limits belong to features; a plan lists the features it includes and may override their limits. Fails with a conflict if the product ID already exists; there is no update, so changing a product means removing it and creating it again. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"product": {
"type": "object",
"description": "One product object. Example with a Free plan of 3 exports a month and a Pro plan of 100: {\"productId\":\"reports\",\"features\":[{\"featureId\":\"export\",\"limits\":[{\"type\":\"CalendarPeriodRateLimit\",\"id\":\"monthly-exports\",\"quota\":3,\"periodicity\":\"MONTH\"}]},{\"featureId\":\"audit-log\",\"limits\":[]}],\"plans\":[{\"planId\":\"free\",\"includedFeatures\":[\"export\"]},{\"planId\":\"pro\",\"includedFeatures\":[\"export\",\"audit-log\"],\"limitsOverride\":[{\"type\":\"CalendarPeriodRateLimit\",\"id\":\"monthly-exports\",\"quota\":100,\"periodicity\":\"MONTH\"}]}]}",
"properties": {
"productId": {
"type": "string",
"description": "New product ID."
},
"features": {
"type": "array",
"description": "The features of the product. Limits are defined here, once per feature.",
"items": {
"type": "object",
"properties": {
"featureId": {
"type": "string",
"description": "Feature ID, unique within the product."
},
"limits": {
"type": "array",
"description": "Default limits of the feature. Leave empty for a feature that is only on or off.",
"items": {
"type": "object",
"description": "One limit. A CountLimit is a total with no automatic reset and takes \"count\". A CalendarPeriodRateLimit resets every calendar period and takes \"quota\" and \"periodicity\".",
"properties": {
"type": {
"type": "string",
"enum": [
"CountLimit",
"CalendarPeriodRateLimit"
],
"description": "Kind of limit."
},
"id": {
"type": "string",
"description": "Limit ID, unique within the product, for example \"monthly-exports\"."
},
"count": {
"type": "integer",
"minimum": 1,
"description": "CountLimit only: units allowed in total."
},
"quota": {
"type": "integer",
"minimum": 1,
"description": "CalendarPeriodRateLimit only: units allowed per period."
},
"periodicity": {
"type": "string",
"enum": [
"HOUR",
"DAY",
"WEEK",
"MONTH",
"YEAR"
],
"description": "CalendarPeriodRateLimit only: the period."
},
"unit": {
"type": "string",
"description": "Optional label for what is counted, for example \"exports\"."
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
}
},
"required": [
"featureId"
],
"additionalProperties": false
}
},
"plans": {
"type": "array",
"description": "The plans a subscription can be on.",
"items": {
"type": "object",
"properties": {
"planId": {
"type": "string",
"description": "Plan ID, unique within the product."
},
"description": {
"type": "string",
"description": "Optional description of the plan."
},
"includedFeatures": {
"type": "array",
"description": "Feature IDs this plan gives access to. A feature left out is not allowed.",
"items": {
"type": "string"
}
},
"limitsOverride": {
"type": "array",
"description": "Complete limit objects that replace, for this plan, the feature limit with the same id.",
"items": {
"type": "object",
"description": "One limit. A CountLimit is a total with no automatic reset and takes \"count\". A CalendarPeriodRateLimit resets every calendar period and takes \"quota\" and \"periodicity\".",
"properties": {
"type": {
"type": "string",
"enum": [
"CountLimit",
"CalendarPeriodRateLimit"
],
"description": "Kind of limit."
},
"id": {
"type": "string",
"description": "Limit ID, unique within the product, for example \"monthly-exports\"."
},
"count": {
"type": "integer",
"minimum": 1,
"description": "CountLimit only: units allowed in total."
},
"quota": {
"type": "integer",
"minimum": 1,
"description": "CalendarPeriodRateLimit only: units allowed per period."
},
"periodicity": {
"type": "string",
"enum": [
"HOUR",
"DAY",
"WEEK",
"MONTH",
"YEAR"
],
"description": "CalendarPeriodRateLimit only: the period."
},
"unit": {
"type": "string",
"description": "Optional label for what is counted, for example \"exports\"."
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
}
},
"required": [
"planId",
"includedFeatures"
],
"additionalProperties": false
}
}
},
"required": [
"productId",
"features"
],
"additionalProperties": false
}
},
"required": [
"sandbox",
"product"
],
"additionalProperties": false
}🔴pmitz_remove_product(sandbox, productId)
Removes a product definition. Every check for that product is refused until it is created again. Stored usage and subscriptions are kept. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"productId": {
"type": "string",
"description": "Product ID to remove."
}
},
"required": [
"sandbox",
"productId"
],
"additionalProperties": false
}🟡pmitz_create_subscription(sandbox, subscriptionId, status, plans, expirationDate)
Creates a subscription and assigns a plan per product. Fails with a conflict if the subscription ID already exists. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"subscriptionId": {
"type": "string",
"description": "New subscription ID."
},
"status": {
"type": "string",
"enum": [
"TRIAL",
"TRIAL_ENDED",
"PENDING",
"ACTIVE",
"SUSPENDED",
"EXPIRED",
"PENDING_CANCELLATION",
"CANCELLED",
"TERMINATED",
"ENDED"
],
"description": "Initial status, usually ACTIVE."
},
"plans": {
"type": "object",
"description": "Plan ID per product ID, for example {\"reports\": \"free\"}.",
"additionalProperties": {
"type": "string"
}
},
"expirationDate": {
"type": "string",
"description": "Optional ISO date-time with an offset, for example 2027-01-31T00:00:00Z."
}
},
"required": [
"sandbox",
"subscriptionId",
"status",
"plans"
],
"additionalProperties": false
}🔴pmitz_update_subscription_status(sandbox, subscriptionId, status)
Changes the status of a subscription. A status that is not valid, such as SUSPENDED or CANCELLED, makes every feature check for that subscription fail. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"subscriptionId": {
"type": "string",
"description": "Subscription ID."
},
"status": {
"type": "string",
"enum": [
"TRIAL",
"TRIAL_ENDED",
"PENDING",
"ACTIVE",
"SUSPENDED",
"EXPIRED",
"PENDING_CANCELLATION",
"CANCELLED",
"TERMINATED",
"ENDED"
],
"description": "New status."
}
},
"required": [
"sandbox",
"subscriptionId",
"status"
],
"additionalProperties": false
}🟢pmitz_record_usage(sandbox, groupType, groupId, productId, featureId, ...)
Records consumed units for a subject. Refused when a limit would be exceeded. It writes to Pmitz directly, so it does not show whether an application records usage itself. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"groupType": {
"type": "string",
"enum": [
"subscriptions",
"users",
"directory-groups"
],
"description": "Kind of subject. Use \"subscriptions\" when access depends on a plan."
},
"groupId": {
"type": "string",
"description": "Identifier of the subscription, user or directory group."
},
"productId": {
"type": "string",
"description": "Product ID from the catalog."
},
"featureId": {
"type": "string",
"description": "Feature ID inside that product."
},
"units": {
"type": "object",
"description": "Units per limit ID, for example {\"monthly-exports\": 1}. Each value is a positive integer.",
"additionalProperties": {
"type": "integer",
"minimum": 1
}
}
},
"required": [
"sandbox",
"groupId",
"productId",
"featureId",
"units"
],
"additionalProperties": false
}🔴pmitz_reduce_usage(sandbox, groupType, groupId, productId, featureId, ...)
Subtracts units from the recorded usage of a subject, for example after a seat is freed. It subtracts; it does not restore an earlier value. Acts on one Pmitz sandbox.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox": {
"type": "string",
"description": "The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…."
},
"groupType": {
"type": "string",
"enum": [
"subscriptions",
"users",
"directory-groups"
],
"description": "Kind of subject. Use \"subscriptions\" when access depends on a plan."
},
"groupId": {
"type": "string",
"description": "Identifier of the subscription, user or directory group."
},
"productId": {
"type": "string",
"description": "Product ID from the catalog."
},
"featureId": {
"type": "string",
"description": "Feature ID inside that product."
},
"units": {
"type": "object",
"description": "Units per limit ID, for example {\"monthly-exports\": 1}. Each value is a positive integer.",
"additionalProperties": {
"type": "integer",
"minimum": 1
}
}
},
"required": [
"sandbox",
"groupId",
"productId",
"featureId",
"units"
],
"additionalProperties": false
}コミュニティ
エビデンス