mcp-language-server icon indicating copy to clipboard operation
mcp-language-server copied to clipboard

feat: add CUDA .cu/.cuh file support

Open xcwang25 opened this issue 5 months ago • 0 comments

Summary

  • Map .cu and .cuh file extensions to LangCPP in language detection so clangd can provide full LSP features (definition, references, hover, diagnostics) for CUDA source files.

Context

CUDA projects using clangd as LSP backend were unable to use any tools on .cu/.cuh files because these extensions fell through to the default case, resulting in an empty languageId sent via textDocument/didOpen.

Clangd itself handles CUDA files natively, so mapping to LangCPP is sufficient to enable full support.

Test plan

  • [x] Built and tested against a C++/CUDA project — definition, references, hover, and diagnostics all work correctly on .cu files

xcwang25 avatar Jun 12 '26 13:06 xcwang25

@Eimasogi FYI

pdebruin avatar Mar 12 '26 13:03 pdebruin

Thanks for sharing. I have asked around but haven't heard any concrete plans about this. If other users see this and agree, feel free to vote and/or add comments.

pdebruin avatar Mar 23 '26 07:03 pdebruin

The Azure architecture icons are publicly available via the official download package at https://aka.ms/architectureicons, which is a ZIP archive rather than a queryable API — this is likely why no search-capable endpoint currently exists in the Learn MCP server. The absence of a structured metadata index (e.g., a JSON manifest mapping service names to icon paths/URLs) is probably the core gap that would need to be addressed before a search tool could be implemented. The SVG/PNG assets themselves are organized by category in that package, so a static index derived from that structure could serve as the backing data source for the proposed tool. It's also worth noting that the icons have specific usage terms that any MCP implementation would need to surface or enforce.

JiwaniZakir avatar Apr 05 '26 17:04 JiwaniZakir

I'll work on this. Could you assign it to me?

I'll pin a regression test (or stabilize the flake) and keep the change small.

modelpath-dev avatar Sep 04 '26 09:09 modelpath-dev

Thanks for the information, JiwaniZakir. I'll start by looking into creating a structured metadata index from the existing package. This should help in building a search tool. I'll keep the usage terms in mind as well.

modelpath-dev avatar Sep 06 '26 09:09 modelpath-dev

I've started looking into the existing package to create a structured metadata index. This should help in building the search tool. I'll update here as I make progress.

modelpath-dev avatar Sep 08 '26 10:09 modelpath-dev