create_tenant_provider
Generate a provider for a tenant by defining audience, URL, fingerprints, and issuance time constraints on the UseGrant MCP Server.
Instructions
Create a new provider for a tenant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audience | Yes | The audience of the provider | |
| earliestIssuanceTimeAllowed | Yes | The earliest issuance time allowed in hours | |
| fingerprints | Yes | ||
| tenantId | Yes | The ID of the tenant | |
| url | Yes | The URL of the provider |
Implementation Reference
- src/index.ts:281-286 (handler)The handler function for the 'create_tenant_provider' tool. It takes tenantId and payload, calls usegrant.createTenantProvider, and returns the result as JSON text content.async ({ tenantId, ...payload }) => { const provider = await usegrant.createTenantProvider(tenantId, payload); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; },
- src/index.ts:277-280 (schema)Input schema for the 'create_tenant_provider' tool, combining tenantId schema with CreateTenantProviderSchema from the UseGrant SDK.{ tenantId: UgSchema.TenantIdSchema, ...UgSchema.CreateTenantProviderSchema.shape, },
- src/index.ts:274-287 (registration)Registration of the 'create_tenant_provider' MCP tool using server.tool, including name, description, input schema, and handler function.server.tool( 'create_tenant_provider', 'Create a new provider for a tenant', { tenantId: UgSchema.TenantIdSchema, ...UgSchema.CreateTenantProviderSchema.shape, }, async ({ tenantId, ...payload }) => { const provider = await usegrant.createTenantProvider(tenantId, payload); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; }, );