create_provider
Create a new provider by defining its name and description using the UseGrant MCP Server, ensuring proper setup for provider management in the platform.
Instructions
Create a new provider
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | The description of the provider | |
| name | Yes | The name of the provider |
Implementation Reference
- src/index.ts:37-42 (handler)The handler function for the 'create_provider' MCP tool. It takes input arguments, calls the UseGrant SDK's createProvider method, and returns the result as a JSON-formatted text content response.async (args) => { const provider = await usegrant.createProvider(args); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; },
- src/index.ts:36-36 (schema)The input schema for the 'create_provider' tool, referencing the CreateProviderSchema from the UseGrant SDK.UgSchema.CreateProviderSchema.shape,
- src/index.ts:33-43 (registration)The registration of the 'create_provider' tool on the MCP server, including name, description, schema, and handler function.server.tool( 'create_provider', 'Create a new provider', UgSchema.CreateProviderSchema.shape, async (args) => { const provider = await usegrant.createProvider(args); return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }], }; }, );