@softtechai/quickmcp 1.0.14 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-utils.d.ts +130 -0
- package/dist/auth/auth-utils.d.ts.map +1 -0
- package/dist/auth/auth-utils.js +600 -0
- package/dist/auth/auth-utils.js.map +1 -0
- package/dist/auth/jwks-provider.d.ts +9 -0
- package/dist/auth/jwks-provider.d.ts.map +1 -0
- package/dist/auth/jwks-provider.js +56 -0
- package/dist/auth/jwks-provider.js.map +1 -0
- package/dist/auth/token-utils.d.ts +40 -0
- package/dist/auth/token-utils.d.ts.map +1 -0
- package/dist/auth/token-utils.js +162 -0
- package/dist/auth/token-utils.js.map +1 -0
- package/dist/client/MCPClient.js +5 -4
- package/dist/client/MCPClient.js.map +1 -1
- package/dist/config/auth-config.d.ts +16 -0
- package/dist/config/auth-config.d.ts.map +1 -0
- package/dist/config/auth-config.js +107 -0
- package/dist/config/auth-config.js.map +1 -0
- package/dist/constant/constant.d.ts +20 -0
- package/dist/constant/constant.d.ts.map +1 -0
- package/dist/constant/constant.js +24 -0
- package/dist/constant/constant.js.map +1 -0
- package/dist/database/async-datastore.d.ts +6 -0
- package/dist/database/async-datastore.d.ts.map +1 -0
- package/dist/database/async-datastore.js +15 -0
- package/dist/database/async-datastore.js.map +1 -0
- package/dist/database/database-utils.d.ts +6 -0
- package/dist/database/database-utils.d.ts.map +1 -0
- package/dist/database/database-utils.js +29 -0
- package/dist/database/database-utils.js.map +1 -0
- package/dist/database/datastore.d.ts +164 -0
- package/dist/database/datastore.d.ts.map +1 -0
- package/dist/{parsers/types/index.js → database/datastore.js} +1 -0
- package/dist/database/datastore.js.map +1 -0
- package/dist/database/factory.d.ts +4 -0
- package/dist/database/factory.d.ts.map +1 -0
- package/dist/database/factory.js +32 -0
- package/dist/database/factory.js.map +1 -0
- package/dist/database/jdbc-manager.d.ts +49 -0
- package/dist/database/jdbc-manager.d.ts.map +1 -0
- package/dist/database/jdbc-manager.js +50 -0
- package/dist/database/jdbc-manager.js.map +1 -0
- package/dist/database/sqlite-manager.d.ts +46 -44
- package/dist/database/sqlite-manager.d.ts.map +1 -1
- package/dist/database/sqlite-manager.js +492 -42
- package/dist/database/sqlite-manager.js.map +1 -1
- package/dist/database/supabase-manager.d.ts +58 -0
- package/dist/database/supabase-manager.d.ts.map +1 -0
- package/dist/database/supabase-manager.js +432 -0
- package/dist/database/supabase-manager.js.map +1 -0
- package/dist/generators/MCPServerGenerator.d.ts +103 -20
- package/dist/generators/MCPServerGenerator.d.ts.map +1 -1
- package/dist/generators/MCPServerGenerator.js +6930 -128
- package/dist/generators/MCPServerGenerator.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/integrated-mcp-server-new.d.ts +14 -2
- package/dist/integrated-mcp-server-new.d.ts.map +1 -1
- package/dist/integrated-mcp-server-new.js +270 -180
- package/dist/integrated-mcp-server-new.js.map +1 -1
- package/dist/mcp-core/McpCoreService.d.ts +63 -0
- package/dist/mcp-core/McpCoreService.d.ts.map +1 -0
- package/dist/mcp-core/McpCoreService.js +492 -0
- package/dist/mcp-core/McpCoreService.js.map +1 -0
- package/dist/parsers/CsvParser.d.ts +1 -1
- package/dist/parsers/CsvParser.d.ts.map +1 -1
- package/dist/parsers/CsvParser.js +3 -2
- package/dist/parsers/CsvParser.js.map +1 -1
- package/dist/parsers/DatabaseParser.d.ts.map +1 -1
- package/dist/parsers/DatabaseParser.js +9 -8
- package/dist/parsers/DatabaseParser.js.map +1 -1
- package/dist/parsers/ExcelParser.d.ts +15 -0
- package/dist/parsers/ExcelParser.d.ts.map +1 -1
- package/dist/parsers/ExcelParser.js +287 -21
- package/dist/parsers/ExcelParser.js.map +1 -1
- package/dist/parsers/WebPageParser.d.ts +5 -0
- package/dist/parsers/WebPageParser.d.ts.map +1 -0
- package/dist/parsers/WebPageParser.js +35 -0
- package/dist/parsers/WebPageParser.js.map +1 -0
- package/dist/parsers/index.d.ts +3 -2
- package/dist/parsers/index.d.ts.map +1 -1
- package/dist/parsers/index.js +19 -16
- package/dist/parsers/index.js.map +1 -1
- package/dist/server/api/askApi.d.ts +41 -0
- package/dist/server/api/askApi.d.ts.map +1 -0
- package/dist/server/api/askApi.js +479 -0
- package/dist/server/api/askApi.js.map +1 -0
- package/dist/server/api/authApi.d.ts +101 -0
- package/dist/server/api/authApi.d.ts.map +1 -0
- package/dist/server/api/authApi.js +1472 -0
- package/dist/server/api/authApi.js.map +1 -0
- package/dist/server/api/authProperty.d.ts +18 -0
- package/dist/server/api/authProperty.d.ts.map +1 -0
- package/dist/server/api/authProperty.js +41 -0
- package/dist/server/api/authProperty.js.map +1 -0
- package/dist/server/api/configApi.d.ts +15 -0
- package/dist/server/api/configApi.d.ts.map +1 -0
- package/dist/server/api/configApi.js +42 -0
- package/dist/server/api/configApi.js.map +1 -0
- package/dist/server/api/databaseApi.d.ts +14 -0
- package/dist/server/api/databaseApi.d.ts.map +1 -0
- package/dist/server/api/databaseApi.js +111 -0
- package/dist/server/api/databaseApi.js.map +1 -0
- package/dist/server/api/directoryApi.d.ts +9 -0
- package/dist/server/api/directoryApi.d.ts.map +1 -0
- package/dist/server/api/directoryApi.js +103 -0
- package/dist/server/api/directoryApi.js.map +1 -0
- package/dist/server/api/generateApi.d.ts +24 -0
- package/dist/server/api/generateApi.d.ts.map +1 -0
- package/dist/server/api/generateApi.js +457 -0
- package/dist/server/api/generateApi.js.map +1 -0
- package/dist/server/api/healthApi.d.ts +9 -0
- package/dist/server/api/healthApi.d.ts.map +1 -0
- package/dist/server/api/healthApi.js +15 -0
- package/dist/server/api/healthApi.js.map +1 -0
- package/dist/server/api/indexApi.d.ts +21 -0
- package/dist/server/api/indexApi.d.ts.map +1 -0
- package/dist/server/api/indexApi.js +61 -0
- package/dist/server/api/indexApi.js.map +1 -0
- package/dist/server/api/logsApi.d.ts +12 -0
- package/dist/server/api/logsApi.d.ts.map +1 -0
- package/dist/server/api/logsApi.js +37 -0
- package/dist/server/api/logsApi.js.map +1 -0
- package/dist/server/api/mcpApi.d.ts +20 -0
- package/dist/server/api/mcpApi.d.ts.map +1 -0
- package/dist/server/api/mcpApi.js +120 -0
- package/dist/server/api/mcpApi.js.map +1 -0
- package/dist/server/api/nameApi.d.ts +21 -0
- package/dist/server/api/nameApi.d.ts.map +1 -0
- package/dist/server/api/nameApi.js +42 -0
- package/dist/server/api/nameApi.js.map +1 -0
- package/dist/server/api/parseApi.d.ts +9 -0
- package/dist/server/api/parseApi.d.ts.map +1 -0
- package/dist/server/api/parseApi.js +3245 -0
- package/dist/server/api/parseApi.js.map +1 -0
- package/dist/server/api/serverApi.d.ts +44 -0
- package/dist/server/api/serverApi.d.ts.map +1 -0
- package/dist/server/api/serverApi.js +417 -0
- package/dist/server/api/serverApi.js.map +1 -0
- package/dist/{dynamic-mcp-executor.d.ts → server/dynamic-mcp-executor.d.ts} +4 -5
- package/dist/server/dynamic-mcp-executor.d.ts.map +1 -0
- package/dist/server/dynamic-mcp-executor.js +62 -0
- package/dist/server/dynamic-mcp-executor.js.map +1 -0
- package/dist/server/port-utils.d.ts +14 -0
- package/dist/server/port-utils.d.ts.map +1 -0
- package/dist/server/port-utils.js +31 -0
- package/dist/server/port-utils.js.map +1 -0
- package/dist/server/server-utils.d.ts +13 -0
- package/dist/server/server-utils.d.ts.map +1 -0
- package/dist/server/server-utils.js +72 -0
- package/dist/server/server-utils.js.map +1 -0
- package/dist/{web → server}/server.d.ts +1 -0
- package/dist/server/server.d.ts.map +1 -0
- package/dist/server/server.js +535 -0
- package/dist/server/server.js.map +1 -0
- package/dist/server/tool-executer.d.ts +101 -0
- package/dist/server/tool-executer.d.ts.map +1 -0
- package/dist/server/tool-executer.js +6198 -0
- package/dist/server/tool-executer.js.map +1 -0
- package/dist/types/index.d.ts +1197 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1028 -0
- package/dist/types/index.js.map +1 -1
- package/dist/upload/upload-utils.d.ts +4 -0
- package/dist/upload/upload-utils.d.ts.map +1 -0
- package/dist/upload/upload-utils.js +29 -0
- package/dist/upload/upload-utils.js.map +1 -0
- package/dist/utils/deployment-util.d.ts +14 -0
- package/dist/utils/deployment-util.d.ts.map +1 -0
- package/dist/utils/deployment-util.js +46 -0
- package/dist/utils/deployment-util.js.map +1 -0
- package/dist/utils/logger.d.ts +15 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +56 -0
- package/dist/utils/logger.js.map +1 -0
- package/package.json +18 -6
- package/quickmcp-direct-stdio.js +245 -163
- package/src/web/public/app.js +15370 -1471
- package/src/web/public/authorization.html +868 -0
- package/src/web/public/database-tables.html +283 -547
- package/src/web/public/how-to-use.html +446 -462
- package/src/web/public/how-to-use.js +4 -4
- package/src/web/public/images/app/activepieces.png +0 -0
- package/src/web/public/images/app/airtable.png +0 -0
- package/src/web/public/images/app/androidstudio.png +0 -0
- package/src/web/public/images/app/antigravity.png +0 -0
- package/src/web/public/images/app/applenotes.png +0 -0
- package/src/web/public/images/app/applereminders.png +0 -0
- package/src/web/public/images/app/asana.png +0 -0
- package/src/web/public/images/app/azureai.png +0 -0
- package/src/web/public/images/app/bash.png +0 -0
- package/src/web/public/images/app/bearnotes.png +0 -0
- package/src/web/public/images/app/bitbucket.png +0 -0
- package/src/web/public/images/app/claude.png +0 -0
- package/src/web/public/images/app/cli.png +0 -0
- package/src/web/public/images/app/clickup.png +0 -0
- package/src/web/public/images/app/cohere.png +0 -0
- package/src/web/public/images/app/confluence.png +0 -0
- package/src/web/public/images/app/confluence2.png +0 -0
- package/src/web/public/images/app/curl.png +0 -0
- package/src/web/public/images/app/curl_mini.png +0 -0
- package/src/web/public/images/app/cursor.png +0 -0
- package/src/web/public/images/app/db2.png +0 -0
- package/src/web/public/images/app/deepseek.png +0 -0
- package/src/web/public/images/app/discord.png +0 -0
- package/src/web/public/images/app/docker.png +0 -0
- package/src/web/public/images/app/dockerhub.png +0 -0
- package/src/web/public/images/app/dropbox.png +0 -0
- package/src/web/public/images/app/elasticsearch.png +0 -0
- package/src/web/public/images/app/facebook.png +0 -0
- package/src/web/public/images/app/falai.png +0 -0
- package/src/web/public/images/app/fireworks.png +0 -0
- package/src/web/public/images/app/gdrive.png +0 -0
- package/src/web/public/images/app/gemini.png +0 -0
- package/src/web/public/images/app/github.png +0 -0
- package/src/web/public/images/app/githubcopilot.png +0 -0
- package/src/web/public/images/app/gitlab.png +0 -0
- package/src/web/public/images/app/gmail.png +0 -0
- package/src/web/public/images/app/googlecalender.png +0 -0
- package/src/web/public/images/app/googledocs.png +0 -0
- package/src/web/public/images/app/googlesheets.png +0 -0
- package/src/web/public/images/app/gradle.png +0 -0
- package/src/web/public/images/app/grafana.png +0 -0
- package/src/web/public/images/app/graphql.png +0 -0
- package/src/web/public/images/app/grok.png +0 -0
- package/src/web/public/images/app/groq.png +0 -0
- package/src/web/public/images/app/hazelcast.png +0 -0
- package/src/web/public/images/app/huggingface.png +0 -0
- package/src/web/public/images/app/imessage.png +0 -0
- package/src/web/public/images/app/instagram.png +0 -0
- package/src/web/public/images/app/intellij.png +0 -0
- package/src/web/public/images/app/jenkins.png +0 -0
- package/src/web/public/images/app/jira.png +0 -0
- package/src/web/public/images/app/kafka.png +0 -0
- package/src/web/public/images/app/kubernetes.png +0 -0
- package/src/web/public/images/app/linear.png +0 -0
- package/src/web/public/images/app/linkedin.png +0 -0
- package/src/web/public/images/app/llama.png +0 -0
- package/src/web/public/images/app/make.png +0 -0
- package/src/web/public/images/app/maven.png +0 -0
- package/src/web/public/images/app/mcp.png +0 -0
- package/src/web/public/images/app/microsoftteams.png +0 -0
- package/src/web/public/images/app/mistral.png +0 -0
- package/src/web/public/images/app/monday.png +0 -0
- package/src/web/public/images/app/mongodb.png +0 -0
- package/src/web/public/images/app/mssql.png +0 -0
- package/src/web/public/images/app/mysql.png +0 -0
- package/src/web/public/images/app/n8n.png +0 -0
- package/src/web/public/images/app/notion.png +0 -0
- package/src/web/public/images/app/npm.png +0 -0
- package/src/web/public/images/app/nuget.png +0 -0
- package/src/web/public/images/app/obsidian.png +0 -0
- package/src/web/public/images/app/openai.png +0 -0
- package/src/web/public/images/app/openrouter.png +0 -0
- package/src/web/public/images/app/opensearch.png +0 -0
- package/src/web/public/images/app/openshift.png +0 -0
- package/src/web/public/images/app/oracle.png +0 -0
- package/src/web/public/images/app/perplexity.png +0 -0
- package/src/web/public/images/app/pipedream.png +0 -0
- package/src/web/public/images/app/postgresql.png +0 -0
- package/src/web/public/images/app/powershell.png +0 -0
- package/src/web/public/images/app/prometheus.png +0 -0
- package/src/web/public/images/app/reddit.png +0 -0
- package/src/web/public/images/app/redis.png +0 -0
- package/src/web/public/images/app/rss.png +0 -0
- package/src/web/public/images/app/signal.png +0 -0
- package/src/web/public/images/app/slack.png +0 -0
- package/src/web/public/images/app/soap.png +0 -0
- package/src/web/public/images/app/sqlite.png +0 -0
- package/src/web/public/images/app/supabase.png +0 -0
- package/src/web/public/images/app/telegram.png +0 -0
- package/src/web/public/images/app/things3.png +0 -0
- package/src/web/public/images/app/threads.png +0 -0
- package/src/web/public/images/app/tiktok.png +0 -0
- package/src/web/public/images/app/together.png +0 -0
- package/src/web/public/images/app/trello.png +0 -0
- package/src/web/public/images/app/vscode.png +0 -0
- package/src/web/public/images/app/webhook.png +0 -0
- package/src/web/public/images/app/webpage.png +0 -0
- package/src/web/public/images/app/whatsappbusiness.png +0 -0
- package/src/web/public/images/app/windsorf.png +0 -0
- package/src/web/public/images/app/x.png +0 -0
- package/src/web/public/images/app/youtube.png +0 -0
- package/src/web/public/images/app/zapier.png +0 -0
- package/src/web/public/images/app/zededitor.png +0 -0
- package/src/web/public/images/app/zoom.png +0 -0
- package/src/web/public/images/avatar-anon.svg +4 -0
- package/src/web/public/images/favicon.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step0.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step1.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step2.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step3.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step4.png +0 -0
- package/src/web/public/images/install/chatgpt-web/step5.png +0 -0
- package/src/web/public/images/readme/1-generate-servers.png +0 -0
- package/src/web/public/images/readme/2-database-connection.png +0 -0
- package/src/web/public/images/readme/2-file-upload.png +0 -0
- package/src/web/public/images/readme/3-data-preview.png +0 -0
- package/src/web/public/images/readme/4-data-preview2.png +0 -0
- package/src/web/public/images/readme/5-server-configuration.png +0 -0
- package/src/web/public/images/readme/6-server-generated-modal.png +0 -0
- package/src/web/public/images/readme/7-generated-servers.png +0 -0
- package/src/web/public/images/readme/8-generated-servers-view-details.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.23.51.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.24.59.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.25.05.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.25.14.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.25.21.png +0 -0
- package/src/web/public/images/readme/Screenshot 2025-10-09 at 20.25.36.png +0 -0
- package/src/web/public/index.html +4685 -488
- package/src/web/public/landing.html +1638 -0
- package/src/web/public/logger.js +31 -0
- package/src/web/public/login.html +372 -0
- package/src/web/public/manage-servers.html +121 -188
- package/src/web/public/pricing.html +537 -0
- package/src/web/public/quick-ask.html +133 -0
- package/src/web/public/quickmcp-styles.css +708 -0
- package/src/web/public/roles.html +177 -0
- package/src/web/public/shared.js +736 -3
- package/src/web/public/sidebar.js +414 -0
- package/src/web/public/test-servers.html +605 -221
- package/src/web/public/users.html +191 -0
- package/dist/client/MCPClientUnified.d.ts +0 -31
- package/dist/client/MCPClientUnified.d.ts.map +0 -1
- package/dist/client/MCPClientUnified.js +0 -275
- package/dist/client/MCPClientUnified.js.map +0 -1
- package/dist/client/MCPTestRunnerUnified.d.ts +0 -48
- package/dist/client/MCPTestRunnerUnified.d.ts.map +0 -1
- package/dist/client/MCPTestRunnerUnified.js +0 -183
- package/dist/client/MCPTestRunnerUnified.js.map +0 -1
- package/dist/database/json-manager.d.ts +0 -55
- package/dist/database/json-manager.d.ts.map +0 -1
- package/dist/database/json-manager.js +0 -128
- package/dist/database/json-manager.js.map +0 -1
- package/dist/dynamic-mcp-executor.d.ts.map +0 -1
- package/dist/dynamic-mcp-executor.js +0 -274
- package/dist/dynamic-mcp-executor.js.map +0 -1
- package/dist/generators/MCPServerGenerator-new.d.ts +0 -37
- package/dist/generators/MCPServerGenerator-new.d.ts.map +0 -1
- package/dist/generators/MCPServerGenerator-new.js +0 -287
- package/dist/generators/MCPServerGenerator-new.js.map +0 -1
- package/dist/generators/database/sqlite-manager.d.ts +0 -52
- package/dist/generators/database/sqlite-manager.js +0 -143
- package/dist/generators/generators/MCPServerGenerator.d.ts +0 -37
- package/dist/generators/generators/MCPServerGenerator.js +0 -396
- package/dist/integrated-mcp-server.d.ts +0 -25
- package/dist/integrated-mcp-server.d.ts.map +0 -1
- package/dist/integrated-mcp-server.js +0 -541
- package/dist/integrated-mcp-server.js.map +0 -1
- package/dist/mcp-inspector-server.d.ts +0 -3
- package/dist/mcp-inspector-server.d.ts.map +0 -1
- package/dist/mcp-inspector-server.js +0 -119
- package/dist/mcp-inspector-server.js.map +0 -1
- package/dist/mcp-sdk-server.d.ts +0 -3
- package/dist/mcp-sdk-server.d.ts.map +0 -1
- package/dist/mcp-sdk-server.js +0 -90
- package/dist/mcp-sdk-server.js.map +0 -1
- package/dist/mcp-server.d.ts +0 -3
- package/dist/mcp-server.d.ts.map +0 -1
- package/dist/mcp-server.js +0 -300
- package/dist/mcp-server.js.map +0 -1
- package/dist/parsers/parsers/ExcelParser.js +0 -118
- package/dist/quickmcp-unified-bridge.d.ts +0 -13
- package/dist/quickmcp-unified-bridge.d.ts.map +0 -1
- package/dist/quickmcp-unified-bridge.js +0 -176
- package/dist/quickmcp-unified-bridge.js.map +0 -1
- package/dist/sqlite-manager.js +0 -145
- package/dist/test-app.d.ts +0 -2
- package/dist/test-app.d.ts.map +0 -1
- package/dist/test-app.js +0 -119
- package/dist/test-app.js.map +0 -1
- package/dist/transport/base-transport.d.ts +0 -21
- package/dist/transport/base-transport.d.ts.map +0 -1
- package/dist/transport/base-transport.js +0 -16
- package/dist/transport/base-transport.js.map +0 -1
- package/dist/transport/index.d.ts +0 -10
- package/dist/transport/index.d.ts.map +0 -1
- package/dist/transport/index.js +0 -12
- package/dist/transport/index.js.map +0 -1
- package/dist/transport/sse-transport.d.ts +0 -13
- package/dist/transport/sse-transport.d.ts.map +0 -1
- package/dist/transport/sse-transport.js +0 -106
- package/dist/transport/sse-transport.js.map +0 -1
- package/dist/transport/stdio-transport.d.ts +0 -8
- package/dist/transport/stdio-transport.d.ts.map +0 -1
- package/dist/transport/stdio-transport.js +0 -53
- package/dist/transport/stdio-transport.js.map +0 -1
- package/dist/transport/streamable-http-transport.d.ts +0 -15
- package/dist/transport/streamable-http-transport.d.ts.map +0 -1
- package/dist/transport/streamable-http-transport.js +0 -151
- package/dist/transport/streamable-http-transport.js.map +0 -1
- package/dist/web/client/MCPClient.js +0 -348
- package/dist/web/client/MCPTestRunner.js +0 -317
- package/dist/web/database/json-manager.js +0 -124
- package/dist/web/database/sqlite-manager.js +0 -146
- package/dist/web/dynamic-mcp-executor.js +0 -443
- package/dist/web/generators/MCPServerGenerator-new.js +0 -284
- package/dist/web/generators/MCPServerGenerator.js +0 -566
- package/dist/web/integrated-mcp-server-new.js +0 -394
- package/dist/web/parsers/CsvParser.js +0 -144
- package/dist/web/parsers/DatabaseParser.js +0 -637
- package/dist/web/parsers/ExcelParser.js +0 -180
- package/dist/web/parsers/index.js +0 -152
- package/dist/web/server.d.ts.map +0 -1
- package/dist/web/server.js +0 -790
- package/dist/web/server.js.map +0 -1
- package/dist/web/types/index.js +0 -2
- package/dist/web/web/server.js +0 -860
- package/src/web/public/modern-styles.css +0 -946
- package/src/web/public/shared-styles.css +0 -2091
- /package/src/web/public/images/{1-claude-quickmcp-stdio.png → readme/1-claude-quickmcp-stdio.png} +0 -0
- /package/src/web/public/images/{2-claude-tools.png → readme/2-claude-tools.png} +0 -0
- /package/src/web/public/images/{3-claude-developer-settings.png → readme/3-claude-developer-settings.png} +0 -0
- /package/src/web/public/images/{4-claude-config.png → readme/4-claude-config.png} +0 -0
- /package/src/web/public/images/{5-claude-config-edit.png → readme/5-claude-config-edit.png} +0 -0
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.MCPServerGenerator = void 0;
|
|
51
|
-
var sqlite_manager_js_1 = require("../database/sqlite-manager.js");
|
|
52
|
-
var MCPServerGenerator = /** @class */ (function () {
|
|
53
|
-
function MCPServerGenerator() {
|
|
54
|
-
this.sqliteManager = new sqlite_manager_js_1.SQLiteManager();
|
|
55
|
-
}
|
|
56
|
-
MCPServerGenerator.prototype.generateServer = function (serverId, serverName, parsedData, dbConfig) {
|
|
57
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
58
|
-
var serverConfig, tools, resources;
|
|
59
|
-
return __generator(this, function (_a) {
|
|
60
|
-
try {
|
|
61
|
-
console.log("\uD83D\uDE80 Generating virtual MCP server: ".concat(serverId));
|
|
62
|
-
// Create server config
|
|
63
|
-
console.log("\uD83D\uDCDD Creating server config with serverId: \"".concat(serverId, "\", serverName: \"").concat(serverName, "\""));
|
|
64
|
-
serverConfig = {
|
|
65
|
-
id: serverId,
|
|
66
|
-
name: serverName,
|
|
67
|
-
dbConfig: dbConfig,
|
|
68
|
-
createdAt: new Date().toISOString()
|
|
69
|
-
};
|
|
70
|
-
console.log('📄 Server config created:', JSON.stringify(serverConfig, null, 2));
|
|
71
|
-
// Save server to SQLite database only
|
|
72
|
-
this.sqliteManager.saveServer(serverConfig);
|
|
73
|
-
console.log("\u2705 Server config saved to SQLite database: ".concat(serverId));
|
|
74
|
-
tools = this.generateToolsForData(serverId, parsedData, dbConfig);
|
|
75
|
-
if (tools.length > 0) {
|
|
76
|
-
this.sqliteManager.saveTools(tools);
|
|
77
|
-
console.log("\u2705 Generated ".concat(tools.length, " tools for server ").concat(serverId));
|
|
78
|
-
}
|
|
79
|
-
resources = this.generateResourcesForData(serverId, parsedData, dbConfig);
|
|
80
|
-
if (resources.length > 0) {
|
|
81
|
-
this.sqliteManager.saveResources(resources);
|
|
82
|
-
console.log("\u2705 Generated ".concat(resources.length, " resources for server ").concat(serverId));
|
|
83
|
-
}
|
|
84
|
-
return [2 /*return*/, {
|
|
85
|
-
success: true,
|
|
86
|
-
message: "Virtual MCP server '".concat(serverId, "' created successfully with ").concat(tools.length, " tools and ").concat(resources.length, " resources")
|
|
87
|
-
}];
|
|
88
|
-
}
|
|
89
|
-
catch (error) {
|
|
90
|
-
console.error("\u274C Error generating server ".concat(serverId, ":"), error);
|
|
91
|
-
return [2 /*return*/, {
|
|
92
|
-
success: false,
|
|
93
|
-
message: "Failed to generate server: ".concat(error instanceof Error ? error.message : 'Unknown error')
|
|
94
|
-
}];
|
|
95
|
-
}
|
|
96
|
-
return [2 /*return*/];
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
MCPServerGenerator.prototype.generateToolsForData = function (serverId, parsedData, dbConfig) {
|
|
101
|
-
var tools = [];
|
|
102
|
-
for (var _i = 0, _a = Object.entries(parsedData); _i < _a.length; _i++) {
|
|
103
|
-
var _b = _a[_i], tableName = _b[0], rows = _b[1];
|
|
104
|
-
if (!rows || rows.length === 0)
|
|
105
|
-
continue;
|
|
106
|
-
var columns = this.analyzeColumns(rows);
|
|
107
|
-
var cleanTableName = this.sanitizeName(tableName);
|
|
108
|
-
// GET tool
|
|
109
|
-
tools.push({
|
|
110
|
-
server_id: serverId,
|
|
111
|
-
name: "get_".concat(cleanTableName),
|
|
112
|
-
description: "Get records from ".concat(tableName, " table"),
|
|
113
|
-
inputSchema: {
|
|
114
|
-
type: 'object',
|
|
115
|
-
properties: __assign({ limit: {
|
|
116
|
-
type: 'number',
|
|
117
|
-
description: 'Maximum number of records to return',
|
|
118
|
-
default: 100,
|
|
119
|
-
minimum: 1,
|
|
120
|
-
maximum: 1000
|
|
121
|
-
}, offset: {
|
|
122
|
-
type: 'number',
|
|
123
|
-
description: 'Number of records to skip',
|
|
124
|
-
default: 0,
|
|
125
|
-
minimum: 0
|
|
126
|
-
} }, this.generateFilterProperties(columns)),
|
|
127
|
-
required: []
|
|
128
|
-
},
|
|
129
|
-
sqlQuery: this.generateSelectQuery(tableName, columns, dbConfig.type),
|
|
130
|
-
operation: 'SELECT'
|
|
131
|
-
});
|
|
132
|
-
// CREATE tool
|
|
133
|
-
tools.push({
|
|
134
|
-
server_id: serverId,
|
|
135
|
-
name: "create_".concat(cleanTableName),
|
|
136
|
-
description: "Create a new record in ".concat(tableName, " table"),
|
|
137
|
-
inputSchema: {
|
|
138
|
-
type: 'object',
|
|
139
|
-
properties: this.generateInputProperties(columns, true),
|
|
140
|
-
required: columns.filter(function (col) { return !col.nullable && col.name.toLowerCase() !== 'id'; }).map(function (col) { return col.name; })
|
|
141
|
-
},
|
|
142
|
-
sqlQuery: this.generateInsertQuery(tableName, columns, dbConfig.type),
|
|
143
|
-
operation: 'INSERT'
|
|
144
|
-
});
|
|
145
|
-
// UPDATE tool
|
|
146
|
-
if (columns.some(function (col) { return col.name.toLowerCase() === 'id'; })) {
|
|
147
|
-
tools.push({
|
|
148
|
-
server_id: serverId,
|
|
149
|
-
name: "update_".concat(cleanTableName),
|
|
150
|
-
description: "Update a record in ".concat(tableName, " table"),
|
|
151
|
-
inputSchema: {
|
|
152
|
-
type: 'object',
|
|
153
|
-
properties: __assign({ id: {
|
|
154
|
-
type: ['string', 'number'],
|
|
155
|
-
description: 'ID of the record to update'
|
|
156
|
-
} }, this.generateInputProperties(columns, false)),
|
|
157
|
-
required: ['id']
|
|
158
|
-
},
|
|
159
|
-
sqlQuery: this.generateUpdateQuery(tableName, columns, dbConfig.type),
|
|
160
|
-
operation: 'UPDATE'
|
|
161
|
-
});
|
|
162
|
-
// DELETE tool
|
|
163
|
-
tools.push({
|
|
164
|
-
server_id: serverId,
|
|
165
|
-
name: "delete_".concat(cleanTableName),
|
|
166
|
-
description: "Delete a record from ".concat(tableName, " table"),
|
|
167
|
-
inputSchema: {
|
|
168
|
-
type: 'object',
|
|
169
|
-
properties: {
|
|
170
|
-
id: {
|
|
171
|
-
type: ['string', 'number'],
|
|
172
|
-
description: 'ID of the record to delete'
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
required: ['id']
|
|
176
|
-
},
|
|
177
|
-
sqlQuery: this.generateDeleteQuery(tableName, dbConfig.type),
|
|
178
|
-
operation: 'DELETE'
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
// COUNT tool
|
|
182
|
-
tools.push({
|
|
183
|
-
server_id: serverId,
|
|
184
|
-
name: "count_".concat(cleanTableName),
|
|
185
|
-
description: "Get total count of records in ".concat(tableName, " table"),
|
|
186
|
-
inputSchema: {
|
|
187
|
-
type: 'object',
|
|
188
|
-
properties: this.generateFilterProperties(columns),
|
|
189
|
-
required: []
|
|
190
|
-
},
|
|
191
|
-
sqlQuery: this.generateCountQuery(tableName, columns, dbConfig.type),
|
|
192
|
-
operation: 'SELECT'
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
return tools;
|
|
196
|
-
};
|
|
197
|
-
MCPServerGenerator.prototype.generateResourcesForData = function (serverId, parsedData, dbConfig) {
|
|
198
|
-
var resources = [];
|
|
199
|
-
for (var _i = 0, _a = Object.entries(parsedData); _i < _a.length; _i++) {
|
|
200
|
-
var _b = _a[_i], tableName = _b[0], rows = _b[1];
|
|
201
|
-
if (!rows || rows.length === 0)
|
|
202
|
-
continue;
|
|
203
|
-
var cleanTableName = this.sanitizeName(tableName);
|
|
204
|
-
resources.push({
|
|
205
|
-
server_id: serverId,
|
|
206
|
-
name: "".concat(cleanTableName, "_list"),
|
|
207
|
-
description: "List all records from ".concat(tableName, " table"),
|
|
208
|
-
uri_template: "".concat(cleanTableName, "://list"),
|
|
209
|
-
sqlQuery: this.generateSelectQuery(tableName, this.analyzeColumns(rows), dbConfig.type, false)
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
return resources;
|
|
213
|
-
};
|
|
214
|
-
MCPServerGenerator.prototype.analyzeColumns = function (rows) {
|
|
215
|
-
if (!rows || rows.length === 0)
|
|
216
|
-
return [];
|
|
217
|
-
var firstRow = rows[0];
|
|
218
|
-
var columns = [];
|
|
219
|
-
var _loop_1 = function (key, value) {
|
|
220
|
-
var type = 'string';
|
|
221
|
-
if (typeof value === 'number') {
|
|
222
|
-
type = Number.isInteger(value) ? 'integer' : 'number';
|
|
223
|
-
}
|
|
224
|
-
else if (typeof value === 'boolean') {
|
|
225
|
-
type = 'boolean';
|
|
226
|
-
}
|
|
227
|
-
else if (value instanceof Date) {
|
|
228
|
-
type = 'string'; // Dates are handled as strings in JSON
|
|
229
|
-
}
|
|
230
|
-
else if (value === null || value === undefined) {
|
|
231
|
-
// Check other rows to determine type
|
|
232
|
-
for (var i = 1; i < Math.min(rows.length, 10); i++) {
|
|
233
|
-
var otherValue = rows[i][key];
|
|
234
|
-
if (otherValue !== null && otherValue !== undefined) {
|
|
235
|
-
if (typeof otherValue === 'number') {
|
|
236
|
-
type = Number.isInteger(otherValue) ? 'integer' : 'number';
|
|
237
|
-
}
|
|
238
|
-
else if (typeof otherValue === 'boolean') {
|
|
239
|
-
type = 'boolean';
|
|
240
|
-
}
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
columns.push({
|
|
246
|
-
name: key,
|
|
247
|
-
type: type,
|
|
248
|
-
nullable: rows.some(function (row) { return row[key] === null || row[key] === undefined; })
|
|
249
|
-
});
|
|
250
|
-
};
|
|
251
|
-
for (var _i = 0, _a = Object.entries(firstRow); _i < _a.length; _i++) {
|
|
252
|
-
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
253
|
-
_loop_1(key, value);
|
|
254
|
-
}
|
|
255
|
-
return columns;
|
|
256
|
-
};
|
|
257
|
-
MCPServerGenerator.prototype.generateFilterProperties = function (columns) {
|
|
258
|
-
var properties = {};
|
|
259
|
-
for (var _i = 0, columns_1 = columns; _i < columns_1.length; _i++) {
|
|
260
|
-
var column = columns_1[_i];
|
|
261
|
-
var baseType = column.type === 'integer' ? 'number' : column.type;
|
|
262
|
-
properties["filter_".concat(column.name)] = {
|
|
263
|
-
type: baseType,
|
|
264
|
-
description: "Filter by ".concat(column.name)
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
return properties;
|
|
268
|
-
};
|
|
269
|
-
MCPServerGenerator.prototype.generateInputProperties = function (columns, isCreate) {
|
|
270
|
-
var properties = {};
|
|
271
|
-
for (var _i = 0, columns_2 = columns; _i < columns_2.length; _i++) {
|
|
272
|
-
var column = columns_2[_i];
|
|
273
|
-
// Skip ID field for create operations
|
|
274
|
-
if (isCreate && column.name.toLowerCase() === 'id')
|
|
275
|
-
continue;
|
|
276
|
-
var baseType = column.type === 'integer' ? 'number' : column.type;
|
|
277
|
-
properties[column.name] = {
|
|
278
|
-
type: baseType,
|
|
279
|
-
description: "".concat(column.name, " field")
|
|
280
|
-
};
|
|
281
|
-
// For nullable fields, make them not required instead of using union types
|
|
282
|
-
if (column.nullable && !isCreate) {
|
|
283
|
-
// Optional field - will not be added to required array
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return properties;
|
|
287
|
-
};
|
|
288
|
-
MCPServerGenerator.prototype.generateSelectQuery = function (tableName, columns, dbType, withParams) {
|
|
289
|
-
if (withParams === void 0) { withParams = true; }
|
|
290
|
-
var columnList = columns.map(function (col) { return "[".concat(col.name, "]"); }).join(', ');
|
|
291
|
-
var query = "SELECT ".concat(columnList, " FROM [").concat(tableName, "]");
|
|
292
|
-
if (withParams) {
|
|
293
|
-
// Filter out problematic columns for WHERE clause (e.g., ntext columns in SQL Server)
|
|
294
|
-
var filterableColumns = columns.filter(function (col) {
|
|
295
|
-
// For SQL Server, exclude large text columns that can't be compared
|
|
296
|
-
if (dbType === 'mssql') {
|
|
297
|
-
// Skip columns that might be ntext, text, or image types
|
|
298
|
-
// These are typically identified by their string type and large content
|
|
299
|
-
return true; // We'll handle this at parameter level instead
|
|
300
|
-
}
|
|
301
|
-
return true;
|
|
302
|
-
});
|
|
303
|
-
var whereConditions = filterableColumns.map(function (col) {
|
|
304
|
-
return "(@filter_".concat(col.name, " IS NULL OR [").concat(col.name, "] = @filter_").concat(col.name, ")");
|
|
305
|
-
}).join(' AND ');
|
|
306
|
-
query += " WHERE ".concat(whereConditions);
|
|
307
|
-
// Add ORDER BY clause for consistent pagination
|
|
308
|
-
// Find the first suitable column for ordering (prefer id, created_at, or first column)
|
|
309
|
-
var orderColumn = columns.find(function (col) {
|
|
310
|
-
return col.name.toLowerCase() === 'id' ||
|
|
311
|
-
col.name.toLowerCase().includes('created') ||
|
|
312
|
-
col.name.toLowerCase().includes('timestamp');
|
|
313
|
-
}) || columns[0];
|
|
314
|
-
if (orderColumn) {
|
|
315
|
-
query += " ORDER BY [".concat(orderColumn.name, "]");
|
|
316
|
-
}
|
|
317
|
-
if (dbType === 'mssql') {
|
|
318
|
-
// Use OFFSET/FETCH for proper pagination with ORDER BY
|
|
319
|
-
query += ' OFFSET @offset ROWS FETCH NEXT @limit ROWS ONLY';
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
query += ' LIMIT @limit OFFSET @offset';
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
return query;
|
|
326
|
-
};
|
|
327
|
-
MCPServerGenerator.prototype.generateInsertQuery = function (tableName, columns, dbType) {
|
|
328
|
-
var insertColumns = columns.filter(function (col) { return col.name.toLowerCase() !== 'id'; });
|
|
329
|
-
var columnNames = insertColumns.map(function (col) { return "[".concat(col.name, "]"); }).join(', ');
|
|
330
|
-
var paramNames = insertColumns.map(function (col) { return "@".concat(col.name); }).join(', ');
|
|
331
|
-
return "INSERT INTO [".concat(tableName, "] (").concat(columnNames, ") VALUES (").concat(paramNames, ")");
|
|
332
|
-
};
|
|
333
|
-
MCPServerGenerator.prototype.generateUpdateQuery = function (tableName, columns, dbType) {
|
|
334
|
-
var updateColumns = columns.filter(function (col) { return col.name.toLowerCase() !== 'id'; });
|
|
335
|
-
var setClause = updateColumns.map(function (col) { return "[".concat(col.name, "] = @").concat(col.name); }).join(', ');
|
|
336
|
-
return "UPDATE [".concat(tableName, "] SET ").concat(setClause, " WHERE [Id] = @id");
|
|
337
|
-
};
|
|
338
|
-
MCPServerGenerator.prototype.generateDeleteQuery = function (tableName, dbType) {
|
|
339
|
-
return "DELETE FROM [".concat(tableName, "] WHERE [Id] = @id");
|
|
340
|
-
};
|
|
341
|
-
MCPServerGenerator.prototype.generateCountQuery = function (tableName, columns, dbType) {
|
|
342
|
-
var query = "SELECT COUNT(*) as total_count FROM [".concat(tableName, "]");
|
|
343
|
-
// Filter out problematic columns for WHERE clause (e.g., ntext columns in SQL Server)
|
|
344
|
-
var filterableColumns = columns.filter(function (col) {
|
|
345
|
-
// For SQL Server, exclude large text columns that can't be compared
|
|
346
|
-
if (dbType === 'mssql') {
|
|
347
|
-
// Skip columns that might be ntext, text, or image types
|
|
348
|
-
// These are typically identified by their string type and large content
|
|
349
|
-
return true; // We'll handle this at parameter level instead
|
|
350
|
-
}
|
|
351
|
-
return true;
|
|
352
|
-
});
|
|
353
|
-
var whereConditions = filterableColumns.map(function (col) {
|
|
354
|
-
return "(@filter_".concat(col.name, " IS NULL OR [").concat(col.name, "] = @filter_").concat(col.name, ")");
|
|
355
|
-
}).join(' AND ');
|
|
356
|
-
query += " WHERE ".concat(whereConditions);
|
|
357
|
-
return query;
|
|
358
|
-
};
|
|
359
|
-
MCPServerGenerator.prototype.sanitizeName = function (name) {
|
|
360
|
-
return name.toLowerCase()
|
|
361
|
-
.replace(/[^a-z0-9]/g, '_')
|
|
362
|
-
.replace(/_{2,}/g, '_')
|
|
363
|
-
.replace(/^_|_$/g, '');
|
|
364
|
-
};
|
|
365
|
-
// Public methods for management
|
|
366
|
-
MCPServerGenerator.prototype.getAllServers = function () {
|
|
367
|
-
return this.sqliteManager.getAllServers();
|
|
368
|
-
};
|
|
369
|
-
MCPServerGenerator.prototype.getServer = function (serverId) {
|
|
370
|
-
return this.sqliteManager.getServer(serverId);
|
|
371
|
-
};
|
|
372
|
-
MCPServerGenerator.prototype.deleteServer = function (serverId) {
|
|
373
|
-
this.sqliteManager.deleteServer(serverId);
|
|
374
|
-
console.log("\uD83D\uDDD1\uFE0F Deleted server from SQLite database: ".concat(serverId));
|
|
375
|
-
};
|
|
376
|
-
MCPServerGenerator.prototype.getAllTools = function () {
|
|
377
|
-
return this.sqliteManager.getAllTools();
|
|
378
|
-
};
|
|
379
|
-
MCPServerGenerator.prototype.getToolsForServer = function (serverId) {
|
|
380
|
-
return this.sqliteManager.getToolsForServer(serverId);
|
|
381
|
-
};
|
|
382
|
-
MCPServerGenerator.prototype.getAllResources = function () {
|
|
383
|
-
return this.sqliteManager.getAllResources();
|
|
384
|
-
};
|
|
385
|
-
MCPServerGenerator.prototype.getResourcesForServer = function (serverId) {
|
|
386
|
-
return this.sqliteManager.getResourcesForServer(serverId);
|
|
387
|
-
};
|
|
388
|
-
MCPServerGenerator.prototype.getStats = function () {
|
|
389
|
-
return this.sqliteManager.getStats();
|
|
390
|
-
};
|
|
391
|
-
MCPServerGenerator.prototype.close = function () {
|
|
392
|
-
this.sqliteManager.close();
|
|
393
|
-
};
|
|
394
|
-
return MCPServerGenerator;
|
|
395
|
-
}());
|
|
396
|
-
exports.MCPServerGenerator = MCPServerGenerator;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
interface ServerInfo {
|
|
3
|
-
config: any;
|
|
4
|
-
serverPath: string;
|
|
5
|
-
parsedData: any[];
|
|
6
|
-
runtimeProcess?: any;
|
|
7
|
-
runtimePort?: number;
|
|
8
|
-
}
|
|
9
|
-
declare class IntegratedMCPServer {
|
|
10
|
-
private server;
|
|
11
|
-
private app;
|
|
12
|
-
private generatedServers;
|
|
13
|
-
constructor(generatedServers: Map<string, ServerInfo>);
|
|
14
|
-
private setupHandlers;
|
|
15
|
-
private executeToolHandler;
|
|
16
|
-
private generateResourceContent;
|
|
17
|
-
private processPromptTemplate;
|
|
18
|
-
private searchTable;
|
|
19
|
-
private getAllFromTable;
|
|
20
|
-
private filterTableByColumn;
|
|
21
|
-
private toSafeIdentifier;
|
|
22
|
-
start(port?: number): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
export { IntegratedMCPServer };
|
|
25
|
-
//# sourceMappingURL=integrated-mcp-server.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrated-mcp-server.d.ts","sourceRoot":"","sources":["../src/integrated-mcp-server.ts"],"names":[],"mappings":";AAkBA,UAAU,UAAU;IAClB,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,cAAM,mBAAmB;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,gBAAgB,CAA0B;gBAEtC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAcrD,OAAO,CAAC,aAAa;YA6PP,kBAAkB;YAqClB,uBAAuB;IA4BrC,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;IAwB3B,OAAO,CAAC,gBAAgB;IASlB,KAAK,CAAC,IAAI,GAAE,MAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAqNhD;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|