Skip to main content
Glama
stefanskiasan

Azure DevOps MCP Server for Cline

get_boards

Retrieve available boards from an Azure DevOps project to organize and track work items. Specify a team name to filter results.

Instructions

List available boards in the project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamNoTeam name (optional)

Implementation Reference

  • Core handler function that executes the get_boards tool logic: initializes connection, fetches boards via Azure DevOps Work API, and formats response.
    export async function getBoards(args: GetBoardsArgs, config: AzureDevOpsConfig) {
      AzureDevOpsConnection.initialize(config);
      const connection = AzureDevOpsConnection.getInstance();
      const workApi = await connection.getWorkApi();
      
      const teamContext = {
        project: config.project,
        team: args.team || `${config.project} Team`,
      };
    
      const boards = await workApi.getBoards(teamContext);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(boards, null, 2),
          },
        ],
      };
    }
  • Type definition for input arguments to the get_boards handler.
    interface GetBoardsArgs {
      team?: string;
    }
  • MCP tool definition schema for get_boards, including name, description, and input schema.
    const definitions = [
      {
        name: 'get_boards',
        description: 'List available boards in the project',
        inputSchema: {
          type: 'object',
          properties: {
            team: {
              type: 'string',
              description: 'Team name (optional)',
            },
          },
        },
      },
    ];
  • Registers the getBoards handler within boardTools.initialize, binding config, and exports definitions.
    export const boardTools = {
      initialize: (config: AzureDevOpsConfig) => ({
        getBoards: (args: any) => getBoards(args, config),
        definitions,
      }),
      definitions,
  • src/index.ts:134-136 (registration)
    Main server request handler dispatches 'get_boards' tool calls to the bound handler.
    case 'get_boards':
      result = await tools.board.getBoards(request.params.arguments);
      break;

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/stefanskiasan/azure-devops-mcp-server'

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