Skip to main content
Glama
usegranthq

UseGrant MCP Server

Official
by usegranthq

create_client

Generate a new client for a provider by specifying client name, provider ID, and audience. Facilitates client management in the UseGrant MCP Server.

Instructions

Create a new client for a provider

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audienceYesThe audience of the client
nameYesThe name of the client
providerIdYesThe ID of the provider

Implementation Reference

  • Handler function for the create_client tool that invokes the UseGrant SDK's createClient method, formats the client data as JSON, and returns it in the MCP response format.
    async ({ providerId, ...payload }) => { const client = await usegrant.createClient(providerId, payload); return { content: [{ type: 'text', text: JSON.stringify(client, null, 2) }], }; },
  • Input schema definition for the create_client tool, requiring providerId and spreading fields from UgSchema.CreateClientSchema.
    { providerId: UgSchema.ProviderIdSchema, ...UgSchema.CreateClientSchema.shape },
  • src/index.ts:81-91 (registration)
    Registration of the 'create_client' MCP tool using server.tool(), including name, description, input schema, and handler function.
    server.tool( 'create_client', 'Create a new client for a provider', { providerId: UgSchema.ProviderIdSchema, ...UgSchema.CreateClientSchema.shape }, async ({ providerId, ...payload }) => { const client = await usegrant.createClient(providerId, payload); return { content: [{ type: 'text', text: JSON.stringify(client, null, 2) }], }; }, );

Latest Blog Posts

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/usegranthq/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server