Skip to main content
Glama
mwhesse

Dataverse MCP Server

by mwhesse

create_dataverse_publisher

Create a publisher identity in Dataverse to establish customization prefixes for schema names and enable solution creation for custom components.

Instructions

Creates a new publisher in Dataverse. Publishers are required for creating solutions and provide customization prefixes for schema names. Use this to establish a publisher identity before creating solutions and custom components.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customizationOptionValuePrefixYesOption value prefix (e.g., 72700)
customizationPrefixYesCustomization prefix for schema names (e.g., 'sample')
descriptionNoDescription of the publisher
friendlyNameYesFriendly name for the publisher
uniqueNameYesUnique name for the publisher (e.g., 'examplepublisher')

Implementation Reference

  • The handler function that constructs the publisher definition object and uses DataverseClient.post to create the publisher in Dataverse, returning formatted success or error response.
    async (params) => { try { const publisherDefinition = { friendlyname: params.friendlyName, uniquename: params.uniqueName, description: params.description || `Publisher for ${params.friendlyName}`, customizationprefix: params.customizationPrefix, customizationoptionvalueprefix: params.customizationOptionValuePrefix }; const result = await client.post('publishers', publisherDefinition); return { content: [ { type: "text", text: `Successfully created publisher '${params.friendlyName}' with prefix '${params.customizationPrefix}'.\n\nResponse: ${JSON.stringify(result, null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error creating publisher: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } }
  • Zod input schema defining the parameters required to create a Dataverse publisher.
    inputSchema: { friendlyName: z.string().describe("Friendly name for the publisher"), uniqueName: z.string().describe("Unique name for the publisher (e.g., 'examplepublisher')"), description: z.string().optional().describe("Description of the publisher"), customizationPrefix: z.string().describe("Customization prefix for schema names (e.g., 'sample')"), customizationOptionValuePrefix: z.number().describe("Option value prefix (e.g., 72700)") }
  • The server.registerTool call that defines and registers the 'create_dataverse_publisher' tool including its name, title, description, input schema, and handler function.
    server.registerTool( "create_dataverse_publisher", { title: "Create Dataverse Publisher", description: "Creates a new publisher in Dataverse. Publishers are required for creating solutions and provide customization prefixes for schema names. Use this to establish a publisher identity before creating solutions and custom components.", inputSchema: { friendlyName: z.string().describe("Friendly name for the publisher"), uniqueName: z.string().describe("Unique name for the publisher (e.g., 'examplepublisher')"), description: z.string().optional().describe("Description of the publisher"), customizationPrefix: z.string().describe("Customization prefix for schema names (e.g., 'sample')"), customizationOptionValuePrefix: z.number().describe("Option value prefix (e.g., 72700)") } }, async (params) => { try { const publisherDefinition = { friendlyname: params.friendlyName, uniquename: params.uniqueName, description: params.description || `Publisher for ${params.friendlyName}`, customizationprefix: params.customizationPrefix, customizationoptionvalueprefix: params.customizationOptionValuePrefix }; const result = await client.post('publishers', publisherDefinition); return { content: [ { type: "text", text: `Successfully created publisher '${params.friendlyName}' with prefix '${params.customizationPrefix}'.\n\nResponse: ${JSON.stringify(result, null, 2)}` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error creating publisher: ${error instanceof Error ? error.message : 'Unknown error'}` } ], isError: true }; } } );
  • src/index.ts:167-167 (registration)
    Top-level call to createPublisherTool which performs the actual registration of the tool on the MCP server.
    createPublisherTool(server, dataverseClient);

Other Tools

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/mwhesse/mcp-dataverse'

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