Skip to content

Commit 7e96ad4

Browse files
committed
Initial commit
0 parents  commit 7e96ad4

28 files changed

+855
-0
lines changed

.gitignore

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Build results
2+
[Dd]ebug/
3+
[Dd]ebugPublic/
4+
[Rr]elease/
5+
[Rr]eleases/
6+
x64/
7+
x86/
8+
[Ww][Ii][Nn]32/
9+
[Aa][Rr][Mm]/
10+
[Aa][Rr][Mm]64/
11+
bld/
12+
[Bb]in/
13+
[Oo]bj/
14+
[Ll]og/
15+
[Ll]ogs/
16+
17+
# Visual Studio files
18+
.vs/
19+
*.user
20+
*.userosscache
21+
*.sln.docstates
22+
*.userprefs
23+
24+
# Visual Studio Code
25+
.vscode/*
26+
!.vscode/settings.json
27+
!.vscode/tasks.json
28+
!.vscode/launch.json
29+
!.vscode/extensions.json
30+
31+
# ReSharper
32+
_ReSharper*/
33+
*.[Rr]e[Ss]harper
34+
*.DotSettings.user
35+
36+
# .NET Core
37+
project.lock.json
38+
project.fragment.lock.json
39+
artifacts/
40+
41+
# Files built by Visual Studio
42+
*_i.c
43+
*_p.c
44+
*_h.h
45+
*.ilk
46+
*.meta
47+
*.obj
48+
*.iobj
49+
*.pch
50+
*.pdb
51+
*.ipdb
52+
*.pgc
53+
*.pgd
54+
*.rsp
55+
*.sbr
56+
*.tlb
57+
*.tli
58+
*.tlh
59+
*.tmp
60+
*.tmp_proj
61+
*_wpftmp.csproj
62+
*.log
63+
*.tlog
64+
*.vspscc
65+
*.vssscc
66+
.builds
67+
*.pidb
68+
*.svclog
69+
*.scc
70+
71+
# NuGet Packages
72+
*.nupkg
73+
# NuGet Symbol Packages
74+
*.snupkg
75+
# The packages folder can be ignored because of Package Restore
76+
**/[Pp]ackages/*
77+
# except build/, which is used as an MSBuild target.
78+
!**/[Pp]ackages/build/
79+
# Uncomment if necessary however generally it will be regenerated when needed
80+
#!**/[Pp]ackages/repositories.config
81+
# NuGet v3's project.json files produces more ignorable files
82+
*.nuget.props
83+
*.nuget.targets
84+
85+
# Local development settings
86+
appsettings.Development.json
87+
appsettings.local.json
88+
*.Development.json
89+
90+
# Test Results
91+
[Tt]est[Rr]esult*/
92+
[Bb]uild[Ll]og.*
93+
94+
# NUNIT
95+
*.VisualState.xml
96+
TestResult.xml
97+
nunit-*.xml
98+
99+
# Build Results of an ATL Project
100+
[Dd]ebugPS/
101+
[Rr]eleasePS/
102+
dlldata.c
103+
104+
# SQL Server files
105+
*.mdf
106+
*.ldf
107+
*.ndf
108+
109+
# Business Intelligence projects
110+
*.rdl.data
111+
*.bim.layout
112+
*.bim_*.settings
113+
*.rptproj.rsuser
114+
*- [Bb]ackup.rdl
115+
*- [Bb]ackup ([0-9]).rdl
116+
*- [Bb]ackup ([0-9][0-9]).rdl
117+
118+
# Microsoft Fakes
119+
FakesAssemblies/
120+
121+
# OS generated files
122+
.DS_Store
123+
.DS_Store?
124+
._*
125+
.Spotlight-V100
126+
.Trashes
127+
ehthumbs.db
128+
Thumbs.db

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
"program": "${workspaceFolder}/src/DigmaMCPServer/bin/Debug/net9.0/DigmaMCPServer.dll",
13+
"args": [],
14+
"cwd": "${workspaceFolder}/src/DigmaMCPServer",
15+
"console": "internalConsole",
16+
"stopAtEntry": false
17+
},
18+
{
19+
"name": ".NET Core Attach",
20+
"type": "coreclr",
21+
"request": "attach"
22+
}
23+
]
24+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

.vscode/tasks.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/src/digma-mcp-server.sln",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/src/digma-mcp-server.sln",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/src/digma-mcp-server.sln"
37+
],
38+
"problemMatcher": "$msCompile"
39+
}
40+
]
41+
}

dev/scripts/publish.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dotnet publish /t:PublishContainer -p:ContainerImageTag=0.0.2 -p ContainerRegistry=docker.io
2+
dotnet publish /t:PublishContainer -p:ContainerImageTag=latest -p ContainerRegistry=docker.io

install/vscode/mcp-debug.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"inputs": [
3+
{
4+
"type": "promptString",
5+
"id": "email",
6+
"description": "email",
7+
"password": false
8+
},
9+
{
10+
"type": "promptString",
11+
"id": "password",
12+
"description": "password",
13+
"password": true
14+
},
15+
{
16+
"type": "promptString",
17+
"id": "server_url",
18+
"description": "server url",
19+
"password": false
20+
},
21+
{
22+
"type": "promptString",
23+
"id": "server_token",
24+
"description": "server access token",
25+
"password": false
26+
}
27+
],
28+
"servers": {
29+
"digma-mcp-server": {
30+
"type": "stdio",
31+
"command": "dotnet",
32+
"args": [
33+
"run",
34+
"--project",
35+
"/Users/shaykeren/work/digma-mcp-server/src/DigmaMCPServer/DigmaMCPServer.csproj"
36+
],
37+
"env": {
38+
"Auth__Email": "${input:email}",
39+
"Auth__Password": "${input:password}",
40+
"Auth__ApiToken": "${input:server_token}",
41+
"ServerUrl": "${input:server_url}"
42+
}
43+
}
44+
}
45+
}

install/vscode/mcp.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"inputs": [
3+
{
4+
"type": "promptString",
5+
"id": "email",
6+
"description": "email",
7+
"password": false
8+
},
9+
{
10+
"type": "promptString",
11+
"id": "password",
12+
"description": "password",
13+
"password": true
14+
},
15+
{
16+
"type": "promptString",
17+
"id": "server_url",
18+
"description": "server url",
19+
"password": false
20+
},
21+
{
22+
"type": "promptString",
23+
"id": "server_token",
24+
"description": "server access token",
25+
"password": false
26+
}
27+
],
28+
"servers": {
29+
"digma-mcp-server": {
30+
"type": "stdio",
31+
"command": "docker",
32+
"args": [
33+
"run",
34+
"-i",
35+
"--rm",
36+
"-e",
37+
"Auth__Email",
38+
"-e",
39+
"Auth__Password",
40+
"-e",
41+
"ServerUrl",
42+
"-e",
43+
"Auth__ApiToken",
44+
"digmatic/digma-mcp-server:0.0.1"
45+
],
46+
"env": {
47+
"Auth__Email": "${input:email}",
48+
"Auth__Password": "${input:password}",
49+
"ServerUrl": "${input:server_url}",
50+
"Auth__ApiToken": "${input:server_token}"
51+
}
52+
}
53+
}
54+
}

src/.dockerignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/.dockerignore
2+
**/.env
3+
**/.git
4+
**/.gitignore
5+
**/.project
6+
**/.settings
7+
**/.toolstarget
8+
**/.vs
9+
**/.vscode
10+
**/.idea
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md

src/.idea/.idea.digma-mcp-server/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.idea/.idea.digma-mcp-server/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)