MCP, MCP server
Src To Kb
Convert any source code repository into a searchable knowledge base with automatic chunking, embedding generation, and intelligent search capabilities.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
Rescanned at commit f5e48067bfd3, unchanged since the check below.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
api-server.js, line 402
fs.rmSync(kb.path, { recursive: true, force: true }); - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
external-server-service.js, line 86
const response = await fetch(this.config.url, { - NETWORK_UNNAMED_HOST Low
Calls a fixed host that the description does not name.
external-server-service.js, line 86
const response = await fetch(this.config.url, { - SECRETS_PATH_DOTENV Low
Mentions a .env file.
install-mcp.js, line 269
config.mcpServers['src-to-kb'].env = {}; - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
api-server.js, line 90
const API_KEY = process.env.API_KEY || null;
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Concern
can delete files.
PERMISSION_DELETE_FILES
api-server.js, line 402
fs.rmSync(kb.path, { recursive: true, force: true });
api-server.js, line 640
fs.unlinkSync(req.file.path);
scripts/test.js, line 17
fs.rmSync(TEST_REPO_PATH, { recursive: true, force: true });
Show more
scripts/test.js, line 256
fs.rmSync(KB_OUTPUT_PATH, { recursive: true, force: true });
scripts/test.js, line 362
fs.rmSync(TEST_REPO_PATH, { recursive: true, force: true });
scripts/test.js, line 363
fs.rmSync(KB_OUTPUT_PATH, { recursive: true, force: true });
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address. can reach api.openai.com. The description does not name that host.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
external-server-service.js, line 86
const response = await fetch(this.config.url, {
external-server-service.js, line 205
const response = await fetch(this.config.searchUrl, {
external-server-service.js, line 229
const response = await fetch(statsUrl, {
Show more
external-server-service.js, line 288
const healthResponse = await fetch(healthUrl, {
external-server-service.js, line 329
const testResponse = await fetch(searchUrl, {
kb-generator.js, line 426
const response = await fetch('https://api.openai.com/v1/embeddings', {
search.js, line 229
const initialResponse = await fetch('https://api.openai.com/v1/responses', {
search.js, line 263
const pollResponse = await fetch(`https://api.openai.com/v1/responses/${responseId}`, {
README.md, line 471
const response = await fetch('http://localhost:3000/api/v1/knowledge-bases', {
README.md, line 485
const searchResponse = await fetch('http://localhost:3000/api/v1/search', {
README.md, line 713
const response = await fetch('http://localhost:3000/api/v1/search', {
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
api-server.js, line 90
const API_KEY = process.env.API_KEY || null;
api-server.js, line 475
if (useAI && process.env.OPENAI_API_KEY) {
install-mcp.js, line 269
config.mcpServers['src-to-kb'].env = {};
Show more
external-server-service.js, line 81
if (process.env.EXTERNAL_KB_API_KEY) {
external-server-service.js, line 82
headers['x-api-key'] = process.env.EXTERNAL_KB_API_KEY;
external-server-service.js, line 201
if (process.env.EXTERNAL_KB_API_KEY) {
external-server-service.js, line 202
headers['x-api-key'] = process.env.EXTERNAL_KB_API_KEY;
external-server-service.js, line 225
if (process.env.EXTERNAL_KB_API_KEY) {
external-server-service.js, line 226
headers['x-api-key'] = process.env.EXTERNAL_KB_API_KEY;
install-mcp.js, line 232
const hasApiKey = config.mcpServers['src-to-kb'].env?.OPENAI_API_KEY;
install-mcp.js, line 268
if (!config.mcpServers['src-to-kb'].env) {
install-mcp.js, line 271
config.mcpServers['src-to-kb'].env.OPENAI_API_KEY = apiKey;
.gitignore, line 23
# Environment files
.gitignore, line 24
.env
.npmignore, line 37
# Environment files
.npmignore, line 38
.env
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit f5e48067bfd3. can delete files. can reach a host that is not written as a fixed address. can reach api.openai.com. The description does not name that host. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: f5e48067bfd33645adefcf0ca3ac0194a2ef1f40
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.