This VS Code extension provides a powerful chat participant, @DLT_MCP, that integrates directly with internal enterprise APIs through a Model-Context-Protocol (MCP) server. It allows developers to securely query company data, manage resources, and interact with various services without leaving the editor.
Features
Secure Authentication: Integrates with Azure Active Directory (Azure AD) using a standard OIDC flow to ensure all operations are secure and user-specific.
Extensible Tool Registry: A modular architecture that allows for the easy addition of new tools and commands.
Natural Language Commands: Interact with complex APIs using simple, human-readable prompts in the VS Code chat window.
Rich Formatting: API responses are formatted into clean, readable markdown tables and lists.
Direct API Interaction: Acts as a client to a backend MCP server, which can be configured to communicate with any number of internal or external APIs.
Prerequisites
For this extension to function, it must be able to connect to a running instance of the backend MCP Server. By default, it attempts to connect to http://localhost:4001.
Getting Started
Install the Extension: Install the "DLT MCP Tools" extension from the Visual Studio Marketplace.
Authenticate with Azure AD: Before you can use any tools, you must log in. Open the chat view in VS Code and type:
@DLT_MCP login
This will open a browser window for you to complete the Azure AD sign-in process.
Usage
Once authenticated, you can invoke any of the registered tools. The extension understands a variety of commands related to user, project, and cloud resource management.
Example Commands
Command Category
Example Prompt
Description
Authentication
@DLT_MCP status
Check your current authentication status and user info.
@DLT_MCP logout
Sign out from your Azure AD session.
User & Project Data
@DLT_MCP load users
Loads a list of users from the CIE API.
@DLT_MCP load cps projects
Retrieves a list of all CPS projects.
@DLT_MCP my projects
Fetches the list of projects your user has access to.
Cloud Infrastructure
@DLT_MCP get services for project [ProjectName]
Gets the services associated with a specific project.
@DLT_MCP get namespaces for [ProjectName]/[SvcName]
Gets namespaces for a service within a project.
@DLT_MCP get aws accounts for [ProjectName]
Retrieves AWS accounts linked to a project.
DevOps
@DLT_MCP get github repositories
Fetches a list of GitHub repositories.
Development
To work on this extension locally:
Clone the repository.
Run npm install to install dependencies.
Press F5 to open a new Extension Development Host window with the extension running.
This will allow you to make changes to the source code and test them in a live environment.