Skip to main content
Glama

get-issue-types

Retrieve all issue types available in an Autodesk Construction Cloud project to categorize and manage project issues effectively.

Instructions

List all issue types in an Autodesk Construction Cloud project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes

Implementation Reference

  • Zod schema defining the input parameter 'projectId' for the get-issue-types tool.
    const schema = { projectId: z.string().nonempty() };
  • Handler function implementing the tool logic: fetches access token, initializes IssuesClient, processes projectId, retrieves issue types, and returns them as text content.
    callback: async ({ projectId }) => { // TODO: add pagination support const accessToken = await getAccessToken(["data:read"]); const issuesClient = new IssuesClient(); projectId = projectId.replace("b.", ""); // the projectId should not contain the "b." prefix const issueTypes = await issuesClient.getIssuesTypes(projectId, { accessToken }); if (!issueTypes.results) { throw new Error("No issue types found"); } return { content: issueTypes.results.map((issue) => ({ type: "text", text: JSON.stringify(issue) })) }; }
  • src/server.ts:12-14 (registration)
    Registration of all tools (imported as * from './tools/index.js', which includes get-issue-types) to the MCP server using server.tool().
    for (const tool of Object.values(tools)) { server.tool(tool.title, tool.description, tool.schema, tool.callback); }

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

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