-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (61 loc) · 2.03 KB
/
Makefile
File metadata and controls
81 lines (61 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Makefile for MCP-openMSX project
.PHONY: all npm_install build run_stdio run_http pack publish info clean embeddings query update-mcp-docs
COL_WHITE = \e[1;37m
COL_ORANGE = \e[1;38:5:208m
COL_RESET = \e[0m
SERVER_DIR = mcp-server
MAKE = make -s --no-print-directory -C $(SERVER_DIR)
VECTOR_DIR = vector-db
MAKE_VECTOR = make -s --no-print-directory -C $(VECTOR_DIR)
npm_install:
@$(MAKE) npm_install
build:
@$(MAKE) build
run_stdio:
@$(MAKE) run_stdio
run_http:
@$(MAKE) run_http
pack:
@$(MAKE) pack
inspector: build
@$(MAKE) inspector
publish:
@$(MAKE) publish
info:
@$(MAKE) info
clean:
@$(MAKE) clean
# Create embeddings for VectorDB
embeddings:
@$(MAKE_VECTOR) embeddings
# Querying VectorDB
query:
@$(MAKE_VECTOR) query
# UpdateMCP documentation
update-mcp-docs:
@echo "$(COL_WHITE)#### Updating MCP documentation...$(COL_RESET)"
# Assuming the documentation is in a specific directory
curl -o .github/instructions/mcp_specification.instructions.md https://modelcontextprotocol.io/specification/2025-06-18.md
curl -o .github/instructions/mcp_introduction.instructions.md https://modelcontextprotocol.io/introduction.md
curl -o .github/instructions/mcp_typescript.instructions.md https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/refs/heads/main/README.md
# Checks
depcheck:
@echo "$(COL_WHITE)#### Checking MCP-SERVER depcheck...$(COL_RESET)"
@$(MAKE) depcheck
@echo "$(COL_WHITE)#### Checking VECTOR-DB depcheck...$(COL_RESET)"
@$(MAKE_VECTOR) depcheck
outdated:
@echo "$(COL_WHITE)#### Checking MCP-SERVER outdated...$(COL_RESET)"
@$(MAKE) outdated
@echo "$(COL_WHITE)#### Checking VECTOR-DB outdated...$(COL_RESET)"
@$(MAKE_VECTOR) outdated
npq:
@echo "$(COL_WHITE)#### Checking MCP-SERVER npq...$(COL_RESET)"
@$(MAKE) npq
@echo "$(COL_WHITE)#### Checking VECTOR-DB npq...$(COL_RESET)"
@$(MAKE_VECTOR) npq
check:
@echo "$(COL_WHITE)#### Checking MCP-SERVER dependencies...$(COL_RESET)"
@$(MAKE) check
@echo "$(COL_WHITE)#### Checking VECTOR-DB dependencies...$(COL_RESET)"
@$(MAKE_VECTOR) check