@softtechai/quickmcp 1.0.16 ā 1.1.1
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/README.md +3 -3
- 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 +183 -187
- 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,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ExcelParser = void 0;
|
|
37
|
-
const ExcelJS = __importStar(require("exceljs"));
|
|
38
|
-
class ExcelParser {
|
|
39
|
-
async parse(filePath, sheetName) {
|
|
40
|
-
const workbook = new ExcelJS.Workbook();
|
|
41
|
-
await workbook.xlsx.readFile(filePath);
|
|
42
|
-
const worksheet = sheetName
|
|
43
|
-
? workbook.getWorksheet(sheetName)
|
|
44
|
-
: workbook.getWorksheet(1); // First worksheet
|
|
45
|
-
if (!worksheet) {
|
|
46
|
-
throw new Error(`Sheet "${sheetName || 'first sheet'}" not found`);
|
|
47
|
-
}
|
|
48
|
-
const rows = [];
|
|
49
|
-
let headers = [];
|
|
50
|
-
worksheet.eachRow((row, rowNumber) => {
|
|
51
|
-
const values = row.values;
|
|
52
|
-
// Remove the first element (it's undefined in ExcelJS)
|
|
53
|
-
const rowData = values.slice(1);
|
|
54
|
-
if (rowNumber === 1) {
|
|
55
|
-
headers = rowData.map(cell => cell?.toString() || '');
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
rows.push(rowData);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
if (headers.length === 0) {
|
|
62
|
-
throw new Error('No data found in the sheet');
|
|
63
|
-
}
|
|
64
|
-
const dataTypes = this.inferDataTypes(rows, headers);
|
|
65
|
-
return {
|
|
66
|
-
tableName: worksheet.name,
|
|
67
|
-
headers,
|
|
68
|
-
rows,
|
|
69
|
-
metadata: {
|
|
70
|
-
rowCount: rows.length,
|
|
71
|
-
columnCount: headers.length,
|
|
72
|
-
dataTypes
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
async getSheetNames(filePath) {
|
|
77
|
-
const workbook = new ExcelJS.Workbook();
|
|
78
|
-
await workbook.xlsx.readFile(filePath);
|
|
79
|
-
return workbook.worksheets.map(sheet => sheet.name);
|
|
80
|
-
}
|
|
81
|
-
inferDataTypes(rows, headers) {
|
|
82
|
-
const dataTypes = {};
|
|
83
|
-
headers.forEach((header, index) => {
|
|
84
|
-
const sample = rows.slice(0, 100).map(row => row[index]);
|
|
85
|
-
dataTypes[header] = this.inferColumnType(sample);
|
|
86
|
-
});
|
|
87
|
-
return dataTypes;
|
|
88
|
-
}
|
|
89
|
-
inferColumnType(values) {
|
|
90
|
-
const nonNullValues = values.filter(v => v !== null && v !== undefined && v !== '');
|
|
91
|
-
if (nonNullValues.length === 0)
|
|
92
|
-
return 'string';
|
|
93
|
-
const isNumeric = nonNullValues.every(v => typeof v === 'number' || !isNaN(Number(v)));
|
|
94
|
-
const isInteger = isNumeric && nonNullValues.every(v => {
|
|
95
|
-
const num = typeof v === 'number' ? v : Number(v);
|
|
96
|
-
return Number.isInteger(num);
|
|
97
|
-
});
|
|
98
|
-
const isBoolean = nonNullValues.every(v => v === true || v === false || v === 'true' || v === 'false' || v === 1 || v === 0);
|
|
99
|
-
const isDate = nonNullValues.every(v => {
|
|
100
|
-
if (v instanceof Date)
|
|
101
|
-
return true;
|
|
102
|
-
// ExcelJS automatically converts Excel dates to Date objects
|
|
103
|
-
if (typeof v === 'string')
|
|
104
|
-
return !isNaN(Date.parse(v));
|
|
105
|
-
return false;
|
|
106
|
-
});
|
|
107
|
-
if (isBoolean)
|
|
108
|
-
return 'boolean';
|
|
109
|
-
if (isInteger)
|
|
110
|
-
return 'integer';
|
|
111
|
-
if (isNumeric)
|
|
112
|
-
return 'number';
|
|
113
|
-
if (isDate)
|
|
114
|
-
return 'date';
|
|
115
|
-
return 'string';
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
exports.ExcelParser = ExcelParser;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { TransportType } from './transport';
|
|
3
|
-
declare class QuickMCPBridge {
|
|
4
|
-
private transport;
|
|
5
|
-
private sqliteManager;
|
|
6
|
-
private executor;
|
|
7
|
-
constructor(transportType: TransportType, port?: number);
|
|
8
|
-
start(port?: number): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
private handleMessage;
|
|
11
|
-
}
|
|
12
|
-
export { QuickMCPBridge };
|
|
13
|
-
//# sourceMappingURL=quickmcp-unified-bridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quickmcp-unified-bridge.d.ts","sourceRoot":"","sources":["../src/quickmcp-unified-bridge.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoF,aAAa,EAAE,MAAM,aAAa,CAAC;AAI9H,cAAM,cAAc;IAClB,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAAqB;gBAEzB,aAAa,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM;IAkBjD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAKb,aAAa;CAgI5B;AAqCD,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.QuickMCPBridge = void 0;
|
|
5
|
-
const transport_1 = require("./transport");
|
|
6
|
-
const sqlite_manager_1 = require("./database/sqlite-manager");
|
|
7
|
-
const dynamic_mcp_executor_1 = require("./dynamic-mcp-executor");
|
|
8
|
-
class QuickMCPBridge {
|
|
9
|
-
constructor(transportType, port) {
|
|
10
|
-
// Initialize transport based on type
|
|
11
|
-
if (transportType === 'sse') {
|
|
12
|
-
this.transport = new transport_1.SSETransport(port);
|
|
13
|
-
}
|
|
14
|
-
else if (transportType === 'streamable-http') {
|
|
15
|
-
this.transport = new transport_1.StreamableHTTPTransport(port);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.transport = new transport_1.StdioTransport();
|
|
19
|
-
}
|
|
20
|
-
// Initialize database and executor
|
|
21
|
-
this.sqliteManager = new sqlite_manager_1.SQLiteManager();
|
|
22
|
-
this.executor = new dynamic_mcp_executor_1.DynamicMCPExecutor();
|
|
23
|
-
// Set up message handler
|
|
24
|
-
this.transport.onMessage(this.handleMessage.bind(this));
|
|
25
|
-
}
|
|
26
|
-
async start(port) {
|
|
27
|
-
await this.transport.start(port);
|
|
28
|
-
console.error(`QuickMCP Bridge started with ${this.transport.constructor.name}`);
|
|
29
|
-
}
|
|
30
|
-
async stop() {
|
|
31
|
-
await this.transport.stop();
|
|
32
|
-
this.sqliteManager.close();
|
|
33
|
-
}
|
|
34
|
-
async handleMessage(message) {
|
|
35
|
-
if (!message.id && message.method) {
|
|
36
|
-
// Notification - no response needed
|
|
37
|
-
if (message.method === 'notifications/initialized') {
|
|
38
|
-
console.error('[QuickMCP] Client initialized');
|
|
39
|
-
}
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
let response = null;
|
|
43
|
-
try {
|
|
44
|
-
switch (message.method) {
|
|
45
|
-
case 'initialize':
|
|
46
|
-
response = {
|
|
47
|
-
jsonrpc: '2.0',
|
|
48
|
-
id: message.id,
|
|
49
|
-
result: {
|
|
50
|
-
protocolVersion: '2024-11-05',
|
|
51
|
-
serverInfo: {
|
|
52
|
-
name: 'quickmcp-unified',
|
|
53
|
-
version: '2.0.0'
|
|
54
|
-
},
|
|
55
|
-
capabilities: {
|
|
56
|
-
tools: { listChanged: true },
|
|
57
|
-
resources: { listChanged: true },
|
|
58
|
-
prompts: { listChanged: true }
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
break;
|
|
63
|
-
case 'tools/list':
|
|
64
|
-
const tools = this.sqliteManager.getAllTools();
|
|
65
|
-
const formattedTools = tools.map(tool => ({
|
|
66
|
-
name: `${tool.server_id}__${tool.name}`,
|
|
67
|
-
description: `[${tool.server_id}] ${tool.description}`,
|
|
68
|
-
inputSchema: typeof tool.inputSchema === 'string'
|
|
69
|
-
? JSON.parse(tool.inputSchema)
|
|
70
|
-
: tool.inputSchema
|
|
71
|
-
}));
|
|
72
|
-
response = {
|
|
73
|
-
jsonrpc: '2.0',
|
|
74
|
-
id: message.id,
|
|
75
|
-
result: { tools: formattedTools }
|
|
76
|
-
};
|
|
77
|
-
break;
|
|
78
|
-
case 'resources/list':
|
|
79
|
-
const resources = this.sqliteManager.getAllResources();
|
|
80
|
-
const formattedResources = resources.map(resource => ({
|
|
81
|
-
name: `${resource.server_id}__${resource.name}`,
|
|
82
|
-
description: `[${resource.server_id}] ${resource.description}`,
|
|
83
|
-
uri: resource.uri_template
|
|
84
|
-
}));
|
|
85
|
-
response = {
|
|
86
|
-
jsonrpc: '2.0',
|
|
87
|
-
id: message.id,
|
|
88
|
-
result: { resources: formattedResources }
|
|
89
|
-
};
|
|
90
|
-
break;
|
|
91
|
-
case 'tools/call':
|
|
92
|
-
console.error(`[QuickMCP] Executing tool: ${message.params?.name}`);
|
|
93
|
-
const toolResult = await this.executor.executeTool(message.params?.name || '', message.params?.arguments || {});
|
|
94
|
-
response = {
|
|
95
|
-
jsonrpc: '2.0',
|
|
96
|
-
id: message.id,
|
|
97
|
-
result: {
|
|
98
|
-
content: [{
|
|
99
|
-
type: 'text',
|
|
100
|
-
text: JSON.stringify(toolResult, null, 2)
|
|
101
|
-
}]
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
break;
|
|
105
|
-
case 'resources/read':
|
|
106
|
-
const resourceResult = await this.executor.readResource(message.params?.uri || '');
|
|
107
|
-
response = {
|
|
108
|
-
jsonrpc: '2.0',
|
|
109
|
-
id: message.id,
|
|
110
|
-
result: resourceResult
|
|
111
|
-
};
|
|
112
|
-
break;
|
|
113
|
-
default:
|
|
114
|
-
if (message.id) {
|
|
115
|
-
response = {
|
|
116
|
-
jsonrpc: '2.0',
|
|
117
|
-
id: message.id,
|
|
118
|
-
error: {
|
|
119
|
-
code: -32601,
|
|
120
|
-
message: `Method not found: ${message.method}`
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (response) {
|
|
126
|
-
this.transport.sendMessage(response);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
catch (error) {
|
|
130
|
-
console.error('[QuickMCP] Error handling message:', error);
|
|
131
|
-
if (message.id) {
|
|
132
|
-
this.transport.sendMessage({
|
|
133
|
-
jsonrpc: '2.0',
|
|
134
|
-
id: message.id,
|
|
135
|
-
error: {
|
|
136
|
-
code: -32603,
|
|
137
|
-
message: `Server error: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.QuickMCPBridge = QuickMCPBridge;
|
|
145
|
-
// Main execution
|
|
146
|
-
if (require.main === module) {
|
|
147
|
-
// Parse command line arguments
|
|
148
|
-
const args = process.argv.slice(2);
|
|
149
|
-
let transportType = 'stdio';
|
|
150
|
-
if (args.includes('--sse')) {
|
|
151
|
-
transportType = 'sse';
|
|
152
|
-
}
|
|
153
|
-
else if (args.includes('--streamable-http')) {
|
|
154
|
-
transportType = 'streamable-http';
|
|
155
|
-
}
|
|
156
|
-
const portIndex = args.indexOf('--port');
|
|
157
|
-
const port = portIndex !== -1 && args[portIndex + 1]
|
|
158
|
-
? parseInt(args[portIndex + 1])
|
|
159
|
-
: 3001;
|
|
160
|
-
// Create and start bridge
|
|
161
|
-
const bridge = new QuickMCPBridge(transportType, port);
|
|
162
|
-
bridge.start(port).catch(error => {
|
|
163
|
-
console.error('Failed to start QuickMCP Bridge:', error);
|
|
164
|
-
process.exit(1);
|
|
165
|
-
});
|
|
166
|
-
// Handle graceful shutdown
|
|
167
|
-
process.on('SIGINT', async () => {
|
|
168
|
-
await bridge.stop();
|
|
169
|
-
process.exit(0);
|
|
170
|
-
});
|
|
171
|
-
process.on('SIGTERM', async () => {
|
|
172
|
-
await bridge.stop();
|
|
173
|
-
process.exit(0);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
//# sourceMappingURL=quickmcp-unified-bridge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quickmcp-unified-bridge.js","sourceRoot":"","sources":["../src/quickmcp-unified-bridge.ts"],"names":[],"mappings":";;;;AAEA,2CAA8H;AAC9H,8DAA0D;AAC1D,iEAA4D;AAE5D,MAAM,cAAc;IAKlB,YAAY,aAA4B,EAAE,IAAa;QACrD,qCAAqC;QACrC,IAAI,aAAa,KAAK,KAAK,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAY,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC;aAAM,IAAI,aAAa,KAAK,iBAAiB,EAAE,CAAC;YAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,mCAAuB,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,SAAS,GAAG,IAAI,0BAAc,EAAE,CAAC;QACxC,CAAC;QAED,mCAAmC;QACnC,IAAI,CAAC,aAAa,GAAG,IAAI,8BAAa,EAAE,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,yCAAkB,EAAE,CAAC;QAEzC,yBAAyB;QACzB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAa;QACvB,MA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,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QAC9B,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/sqlite-manager.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SQLiteManager = void 0;
|
|
7
|
-
var better_sqlite3_1 = __importDefault(require("better-sqlite3"));
|
|
8
|
-
var path_1 = __importDefault(require("path"));
|
|
9
|
-
var fs_1 = __importDefault(require("fs"));
|
|
10
|
-
var SQLiteManager = /** @class */ (function () {
|
|
11
|
-
function SQLiteManager() {
|
|
12
|
-
// Create database directory if it doesn't exist
|
|
13
|
-
var dbDir = path_1.default.join(process.cwd(), 'data');
|
|
14
|
-
if (!fs_1.default.existsSync(dbDir)) {
|
|
15
|
-
fs_1.default.mkdirSync(dbDir, { recursive: true });
|
|
16
|
-
}
|
|
17
|
-
this.dbPath = path_1.default.join(dbDir, 'quickmcp.sqlite');
|
|
18
|
-
this.db = new better_sqlite3_1.default(this.dbPath);
|
|
19
|
-
this.initializeTables();
|
|
20
|
-
}
|
|
21
|
-
SQLiteManager.prototype.initializeTables = function () {
|
|
22
|
-
// Servers table
|
|
23
|
-
this.db.exec("\n CREATE TABLE IF NOT EXISTS servers (\n id TEXT PRIMARY KEY,\n name TEXT NOT NULL,\n db_config TEXT NOT NULL,\n created_at TEXT NOT NULL,\n updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP\n )\n ");
|
|
24
|
-
// Tools table
|
|
25
|
-
this.db.exec("\n CREATE TABLE IF NOT EXISTS tools (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n server_id TEXT NOT NULL,\n name TEXT NOT NULL,\n description TEXT NOT NULL,\n input_schema TEXT NOT NULL,\n sql_query TEXT NOT NULL,\n operation TEXT NOT NULL CHECK (operation IN ('SELECT', 'INSERT', 'UPDATE', 'DELETE')),\n created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY (server_id) REFERENCES servers (id) ON DELETE CASCADE,\n UNIQUE(server_id, name)\n )\n ");
|
|
26
|
-
// Resources table
|
|
27
|
-
this.db.exec("\n CREATE TABLE IF NOT EXISTS resources (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n server_id TEXT NOT NULL,\n name TEXT NOT NULL,\n description TEXT NOT NULL,\n uri_template TEXT NOT NULL,\n sql_query TEXT NOT NULL,\n created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY (server_id) REFERENCES servers (id) ON DELETE CASCADE,\n UNIQUE(server_id, name)\n )\n ");
|
|
28
|
-
};
|
|
29
|
-
// Server operations
|
|
30
|
-
SQLiteManager.prototype.saveServer = function (server) {
|
|
31
|
-
var stmt = this.db.prepare("\n INSERT OR REPLACE INTO servers (id, name, db_config, created_at, updated_at)\n VALUES (?, ?, ?, ?, CURRENT_TIMESTAMP)\n ");
|
|
32
|
-
stmt.run(server.id, server.name, JSON.stringify(server.dbConfig), server.createdAt);
|
|
33
|
-
};
|
|
34
|
-
SQLiteManager.prototype.getServer = function (serverId) {
|
|
35
|
-
var stmt = this.db.prepare('SELECT * FROM servers WHERE id = ?');
|
|
36
|
-
var row = stmt.get(serverId);
|
|
37
|
-
if (!row)
|
|
38
|
-
return null;
|
|
39
|
-
return {
|
|
40
|
-
id: row.id,
|
|
41
|
-
name: row.name,
|
|
42
|
-
dbConfig: JSON.parse(row.db_config),
|
|
43
|
-
createdAt: row.created_at
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
SQLiteManager.prototype.getAllServers = function () {
|
|
47
|
-
var stmt = this.db.prepare('SELECT * FROM servers ORDER BY created_at DESC');
|
|
48
|
-
var rows = stmt.all();
|
|
49
|
-
return rows.map(function (row) { return ({
|
|
50
|
-
id: row.id,
|
|
51
|
-
name: row.name,
|
|
52
|
-
dbConfig: JSON.parse(row.db_config),
|
|
53
|
-
createdAt: row.created_at
|
|
54
|
-
}); });
|
|
55
|
-
};
|
|
56
|
-
SQLiteManager.prototype.deleteServer = function (serverId) {
|
|
57
|
-
var stmt = this.db.prepare('DELETE FROM servers WHERE id = ?');
|
|
58
|
-
stmt.run(serverId);
|
|
59
|
-
};
|
|
60
|
-
// Tool operations
|
|
61
|
-
SQLiteManager.prototype.saveTools = function (tools) {
|
|
62
|
-
var stmt = this.db.prepare("\n INSERT OR REPLACE INTO tools (server_id, name, description, input_schema, sql_query, operation)\n VALUES (?, ?, ?, ?, ?, ?)\n ");
|
|
63
|
-
var transaction = this.db.transaction(function (tools) {
|
|
64
|
-
for (var _i = 0, tools_1 = tools; _i < tools_1.length; _i++) {
|
|
65
|
-
var tool = tools_1[_i];
|
|
66
|
-
stmt.run(tool.server_id, tool.name, tool.description, JSON.stringify(tool.inputSchema), tool.sqlQuery, tool.operation);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
transaction(tools);
|
|
70
|
-
};
|
|
71
|
-
SQLiteManager.prototype.getToolsForServer = function (serverId) {
|
|
72
|
-
var stmt = this.db.prepare('SELECT * FROM tools WHERE server_id = ?');
|
|
73
|
-
var rows = stmt.all(serverId);
|
|
74
|
-
return rows.map(function (row) { return ({
|
|
75
|
-
server_id: row.server_id,
|
|
76
|
-
name: row.name,
|
|
77
|
-
description: row.description,
|
|
78
|
-
inputSchema: JSON.parse(row.input_schema),
|
|
79
|
-
sqlQuery: row.sql_query,
|
|
80
|
-
operation: row.operation
|
|
81
|
-
}); });
|
|
82
|
-
};
|
|
83
|
-
SQLiteManager.prototype.getAllTools = function () {
|
|
84
|
-
var stmt = this.db.prepare('SELECT * FROM tools ORDER BY server_id, name');
|
|
85
|
-
var rows = stmt.all();
|
|
86
|
-
return rows.map(function (row) { return ({
|
|
87
|
-
server_id: row.server_id,
|
|
88
|
-
name: row.name,
|
|
89
|
-
description: row.description,
|
|
90
|
-
inputSchema: JSON.parse(row.input_schema),
|
|
91
|
-
sqlQuery: row.sql_query,
|
|
92
|
-
operation: row.operation
|
|
93
|
-
}); });
|
|
94
|
-
};
|
|
95
|
-
// Resource operations
|
|
96
|
-
SQLiteManager.prototype.saveResources = function (resources) {
|
|
97
|
-
var stmt = this.db.prepare("\n INSERT OR REPLACE INTO resources (server_id, name, description, uri_template, sql_query)\n VALUES (?, ?, ?, ?, ?)\n ");
|
|
98
|
-
var transaction = this.db.transaction(function (resources) {
|
|
99
|
-
for (var _i = 0, resources_1 = resources; _i < resources_1.length; _i++) {
|
|
100
|
-
var resource = resources_1[_i];
|
|
101
|
-
stmt.run(resource.server_id, resource.name, resource.description, resource.uri_template, resource.sqlQuery);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
transaction(resources);
|
|
105
|
-
};
|
|
106
|
-
SQLiteManager.prototype.getResourcesForServer = function (serverId) {
|
|
107
|
-
var stmt = this.db.prepare('SELECT * FROM resources WHERE server_id = ?');
|
|
108
|
-
var rows = stmt.all(serverId);
|
|
109
|
-
return rows.map(function (row) { return ({
|
|
110
|
-
server_id: row.server_id,
|
|
111
|
-
name: row.name,
|
|
112
|
-
description: row.description,
|
|
113
|
-
uri_template: row.uri_template,
|
|
114
|
-
sqlQuery: row.sql_query
|
|
115
|
-
}); });
|
|
116
|
-
};
|
|
117
|
-
SQLiteManager.prototype.getAllResources = function () {
|
|
118
|
-
var stmt = this.db.prepare('SELECT * FROM resources ORDER BY server_id, name');
|
|
119
|
-
var rows = stmt.all();
|
|
120
|
-
return rows.map(function (row) { return ({
|
|
121
|
-
server_id: row.server_id,
|
|
122
|
-
name: row.name,
|
|
123
|
-
description: row.description,
|
|
124
|
-
uri_template: row.uri_template,
|
|
125
|
-
sqlQuery: row.sql_query
|
|
126
|
-
}); });
|
|
127
|
-
};
|
|
128
|
-
// Cleanup
|
|
129
|
-
SQLiteManager.prototype.close = function () {
|
|
130
|
-
this.db.close();
|
|
131
|
-
};
|
|
132
|
-
// Statistics
|
|
133
|
-
SQLiteManager.prototype.getStats = function () {
|
|
134
|
-
var serversCount = this.db.prepare('SELECT COUNT(*) as count FROM servers').get();
|
|
135
|
-
var toolsCount = this.db.prepare('SELECT COUNT(*) as count FROM tools').get();
|
|
136
|
-
var resourcesCount = this.db.prepare('SELECT COUNT(*) as count FROM resources').get();
|
|
137
|
-
return {
|
|
138
|
-
servers: serversCount.count,
|
|
139
|
-
tools: toolsCount.count,
|
|
140
|
-
resources: resourcesCount.count
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
return SQLiteManager;
|
|
144
|
-
}());
|
|
145
|
-
exports.SQLiteManager = SQLiteManager;
|
package/dist/test-app.d.ts
DELETED
package/dist/test-app.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-app.d.ts","sourceRoot":"","sources":["../src/test-app.ts"],"names":[],"mappings":""}
|
package/dist/test-app.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const parsers_1 = require("./parsers");
|
|
37
|
-
const MCPServerGenerator_1 = require("./generators/MCPServerGenerator");
|
|
38
|
-
const fs = __importStar(require("fs"));
|
|
39
|
-
const path = __importStar(require("path"));
|
|
40
|
-
async function testApplication() {
|
|
41
|
-
//console.log('š Testing MCP Server Generator Application');
|
|
42
|
-
try {
|
|
43
|
-
// Test 1: Parse CSV data
|
|
44
|
-
//console.log('\n1. Testing CSV parsing...');
|
|
45
|
-
const parser = new parsers_1.DataSourceParser();
|
|
46
|
-
const dataSource = {
|
|
47
|
-
type: 'csv',
|
|
48
|
-
name: 'test-data',
|
|
49
|
-
filePath: path.join(__dirname, 'test-data.csv')
|
|
50
|
-
};
|
|
51
|
-
const parsedData = await parser.parse(dataSource);
|
|
52
|
-
console.log('ā
CSV parsing successful');
|
|
53
|
-
console.log(` - Found ${parsedData.length} table(s)`);
|
|
54
|
-
console.log(` - Headers: ${parsedData[0].headers.join(', ')}`);
|
|
55
|
-
console.log(` - Rows: ${parsedData[0].rows.length}`);
|
|
56
|
-
console.log(` - Data types: ${JSON.stringify(parsedData[0].metadata.dataTypes, null, 2)}`);
|
|
57
|
-
// Test 2: Generate MCP Server
|
|
58
|
-
console.log('\n2. Testing MCP server generation...');
|
|
59
|
-
const generator = new MCPServerGenerator_1.MCPServerGenerator();
|
|
60
|
-
const config = generator.generateConfigFromData('employee-data-server', 'MCP server for employee data analysis and querying', parsedData);
|
|
61
|
-
console.log('ā
MCP server config generated');
|
|
62
|
-
console.log(` - Tools: ${config.tools.length}`);
|
|
63
|
-
console.log(` - Resources: ${config.resources.length}`);
|
|
64
|
-
console.log(` - Prompts: ${config.prompts.length}`);
|
|
65
|
-
// Test 3: Generate server code
|
|
66
|
-
console.log('\n3. Testing server code generation...');
|
|
67
|
-
const serverCode = generator.generateServer(config, parsedData);
|
|
68
|
-
const packageJson = generator.generatePackageJson(config);
|
|
69
|
-
// Write generated files
|
|
70
|
-
const outputDir = './generated-test-server';
|
|
71
|
-
if (!fs.existsSync(outputDir)) {
|
|
72
|
-
fs.mkdirSync(outputDir, { recursive: true });
|
|
73
|
-
}
|
|
74
|
-
fs.writeFileSync(path.join(outputDir, 'index.ts'), serverCode);
|
|
75
|
-
fs.writeFileSync(path.join(outputDir, 'package.json'), packageJson);
|
|
76
|
-
console.log('ā
Server code generated successfully');
|
|
77
|
-
console.log(` - Generated files in: ${outputDir}`);
|
|
78
|
-
console.log(` - index.ts: ${(serverCode.length / 1024).toFixed(1)}KB`);
|
|
79
|
-
// Test 4: Validate generated tools
|
|
80
|
-
console.log('\n4. Testing generated tools...');
|
|
81
|
-
const toolNames = config.tools.map(t => t.name);
|
|
82
|
-
const expectedTools = ['search_table_0', 'get_all_table_0', 'filter_table_0_by_name', 'filter_table_0_by_age', 'filter_table_0_by_city', 'filter_table_0_by_salary'];
|
|
83
|
-
const hasExpectedTools = expectedTools.every(tool => toolNames.some(t => t.includes(tool.split('_').slice(-1)[0])));
|
|
84
|
-
if (hasExpectedTools) {
|
|
85
|
-
console.log('ā
Generated tools validation passed');
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
console.log('ā Generated tools validation failed');
|
|
89
|
-
console.log(` Expected tools containing: ${expectedTools.join(', ')}`);
|
|
90
|
-
console.log(` Generated tools: ${toolNames.join(', ')}`);
|
|
91
|
-
}
|
|
92
|
-
// Test 5: Validate generated resources
|
|
93
|
-
console.log('\n5. Testing generated resources...');
|
|
94
|
-
const resourceUris = config.resources.map(r => r.uri);
|
|
95
|
-
const expectedResources = ['schema://table_0', 'data://table_0/sample'];
|
|
96
|
-
const hasExpectedResources = expectedResources.every(uri => resourceUris.includes(uri));
|
|
97
|
-
if (hasExpectedResources) {
|
|
98
|
-
console.log('ā
Generated resources validation passed');
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
console.log('ā Generated resources validation failed');
|
|
102
|
-
console.log(` Expected: ${expectedResources.join(', ')}`);
|
|
103
|
-
console.log(` Generated: ${resourceUris.join(', ')}`);
|
|
104
|
-
}
|
|
105
|
-
console.log('\nš All tests completed successfully!');
|
|
106
|
-
console.log('\nGenerated MCP Server Summary:');
|
|
107
|
-
console.log(` - Name: ${config.name}`);
|
|
108
|
-
console.log(` - Description: ${config.description}`);
|
|
109
|
-
console.log(` - Tools: ${config.tools.length}`);
|
|
110
|
-
console.log(` - Resources: ${config.resources.length}`);
|
|
111
|
-
console.log(` - Prompts: ${config.prompts.length}`);
|
|
112
|
-
}
|
|
113
|
-
catch (error) {
|
|
114
|
-
console.error('ā Test failed:', error);
|
|
115
|
-
process.exit(1);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
testApplication();
|
|
119
|
-
//# sourceMappingURL=test-app.js.map
|
package/dist/test-app.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-app.js","sourceRoot":"","sources":["../src/test-app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,wEAAqE;AACrE,uCAAyB;AACzB,2CAA6B;AAE7B,KAAK,UAAU,eAAe;IAC5B,6DAA6D;IAE7D,IAAI,CAAC;QACH,yBAAyB;QACzB,6CAA6C;QAC7C,MAAM,MAAM,GAAG,IAAI,0BAAgB,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG;YACjB,IAAI,EAAE,KAAc;YACpB,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC;SAChD,CAAC;QAEF,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,cAAc,UAAU,CAAC,MAAM,WAAW,CAAC,CAAC;QACxD,OAAO,CAAC,GAAG,CAAC,iBAAiB,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,OAAO,CAAC,GAAG,CAAC,cAAc,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAE7F,8BAA8B;QAC9B,OAAO,CAAC,GAAG,CAAC,uCAAu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AAe,EAAE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface MCPMessage {
|
|
2
|
-
jsonrpc: string;
|
|
3
|
-
id?: number;
|
|
4
|
-
method?: string;
|
|
5
|
-
params?: any;
|
|
6
|
-
result?: any;
|
|
7
|
-
error?: {
|
|
8
|
-
code: number;
|
|
9
|
-
message: string;
|
|
10
|
-
data?: any;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare abstract class BaseTransport {
|
|
14
|
-
protected messageHandlers: Map<string, (message: MCPMessage) => void>;
|
|
15
|
-
abstract start(port?: number): Promise<void>;
|
|
16
|
-
abstract stop(): Promise<void>;
|
|
17
|
-
abstract sendMessage(message: MCPMessage): void;
|
|
18
|
-
onMessage(handler: (message: MCPMessage) => void): void;
|
|
19
|
-
protected notifyHandlers(message: MCPMessage): void;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=base-transport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-transport.d.ts","sourceRoot":"","sources":["../../src/transport/base-transport.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,GAAG,CAAC;KACZ,CAAC;CACH;AAED,8BAAsB,aAAa;IACjC,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC,CAAa;IAElF,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAC5C,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAE/C,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,GAAG,IAAI;IAIvD,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;CAGpD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseTransport = void 0;
|
|
4
|
-
class BaseTransport {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.messageHandlers = new Map();
|
|
7
|
-
}
|
|
8
|
-
onMessage(handler) {
|
|
9
|
-
this.messageHandlers.set('default', handler);
|
|
10
|
-
}
|
|
11
|
-
notifyHandlers(message) {
|
|
12
|
-
this.messageHandlers.forEach(handler => handler(message));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.BaseTransport = BaseTransport;
|
|
16
|
-
//# sourceMappingURL=base-transport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-transport.js","sourceRoot":"","sources":["../../src/transport/base-transport.ts"],"names":[],"mappings":";;;AAaA,MAAsB,aAAa;IAAnC;QACY,oBAAe,GAA+C,IAAI,GAAG,EAAE,CAAC;IAapF,CAAC;IAPC,SAAS,CAAC,OAAsC;QAC9C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAES,cAAc,CAAC,OAAmB;QAC1C,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC;CACF;AAdD,sCAcC"}
|