├── .prettierignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bun.lock ├── changelog ├── archive1.md └── archive2.md ├── eslint.config.js ├── package.json ├── repomix.config.json ├── schemas ├── cloudflare-d1-schema.sql └── surrealdb │ ├── surrealdb-events-schema.surql │ ├── surrealdb-functions-schema.surql │ ├── surrealdb-graph-schema.surql │ ├── surrealdb-schema.surql │ └── surrealdb-secure-schema.surql ├── server.json ├── smithery.yaml ├── src ├── config │ └── index.ts ├── container │ ├── README.md │ ├── index.ts │ ├── registrations │ │ ├── core.ts │ │ └── mcp.ts │ └── tokens.ts ├── index.ts ├── mcp-server │ ├── README.md │ ├── prompts │ │ ├── definitions │ │ │ ├── code-review.prompt.ts │ │ │ └── index.ts │ │ ├── prompt-registration.ts │ │ └── utils │ │ │ └── promptDefinition.ts │ ├── resources │ │ ├── definitions │ │ │ ├── echo.resource.ts │ │ │ └── index.ts │ │ ├── resource-registration.ts │ │ └── utils │ │ │ ├── resourceDefinition.ts │ │ │ └── resourceHandlerFactory.ts │ ├── roots │ │ └── roots-registration.ts │ ├── server.ts │ ├── tools │ │ ├── definitions │ │ │ ├── index.ts │ │ │ ├── template-cat-fact.tool.ts │ │ │ ├── template-code-review-sampling.tool.ts │ │ │ ├── template-echo-message.tool.ts │ │ │ ├── template-image-test.tool.ts │ │ │ └── template-madlibs-elicitation.tool.ts │ │ ├── tool-registration.ts │ │ └── utils │ │ │ ├── index.ts │ │ │ ├── toolDefinition.ts │ │ │ └── toolHandlerFactory.ts │ └── transports │ │ ├── ITransport.ts │ │ ├── auth │ │ ├── authFactory.ts │ │ ├── authMiddleware.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── authContext.ts │ │ │ ├── authTypes.ts │ │ │ ├── authUtils.ts │ │ │ └── withAuth.ts │ │ └── strategies │ │ │ ├── authStrategy.ts │ │ │ ├── jwtStrategy.ts │ │ │ └── oauthStrategy.ts │ │ ├── http │ │ ├── httpErrorHandler.ts │ │ ├── httpTransport.ts │ │ ├── httpTypes.ts │ │ ├── index.ts │ │ ├── sessionIdUtils.ts │ │ └── sessionStore.ts │ │ ├── manager.ts │ │ └── stdio │ │ ├── index.ts │ │ └── stdioTransport.ts ├── services │ ├── README.md │ ├── graph │ │ ├── core │ │ │ ├── GraphService.ts │ │ │ └── IGraphProvider.ts │ │ ├── index.ts │ │ ├── providers │ │ │ └── surrealGraph.provider.ts │ │ └── types.ts │ ├── llm │ │ ├── core │ │ │ └── ILlmProvider.ts │ │ ├── index.ts │ │ ├── providers │ │ │ └── openrouter.provider.ts │ │ └── types.ts │ └── speech │ │ ├── core │ │ ├── ISpeechProvider.ts │ │ └── SpeechService.ts │ │ ├── index.ts │ │ ├── providers │ │ ├── elevenlabs.provider.ts │ │ └── whisper.provider.ts │ │ └── types.ts ├── storage │ ├── README.md │ ├── core │ │ ├── IStorageProvider.ts │ │ ├── StorageService.ts │ │ ├── storageFactory.ts │ │ └── storageValidation.ts │ ├── index.ts │ └── providers │ │ ├── cloudflare │ │ ├── d1Provider.ts │ │ ├── index.ts │ │ ├── kvProvider.ts │ │ └── r2Provider.ts │ │ ├── fileSystem │ │ └── fileSystemProvider.ts │ │ ├── inMemory │ │ └── inMemoryProvider.ts │ │ ├── supabase │ │ ├── supabase.types.ts │ │ └── supabaseProvider.ts │ │ └── surrealdb │ │ ├── README.md │ │ ├── auth │ │ ├── authManager.ts │ │ ├── permissionHelpers.ts │ │ └── scopeDefinitions.ts │ │ ├── core │ │ ├── connectionManager.ts │ │ ├── queryBuilder.ts │ │ ├── surrealDbClient.ts │ │ └── transactionManager.ts │ │ ├── events │ │ ├── eventManager.ts │ │ ├── eventTypes.ts │ │ └── triggerBuilder.ts │ │ ├── functions │ │ ├── customFunctions.ts │ │ └── functionRegistry.ts │ │ ├── graph │ │ ├── graphOperations.ts │ │ ├── graphTypes.ts │ │ ├── pathFinder.ts │ │ └── relationshipManager.ts │ │ ├── index.ts │ │ ├── introspection │ │ └── schemaIntrospector.ts │ │ ├── kv │ │ └── surrealKvProvider.ts │ │ ├── migrations │ │ ├── migrationRunner.ts │ │ └── migrationTypes.ts │ │ ├── query │ │ ├── forLoopBuilder.ts │ │ └── subqueryBuilder.ts │ │ └── types.ts ├── types-global │ └── errors.ts ├── utils │ ├── formatting │ │ ├── diffFormatter.ts │ │ ├── index.ts │ │ ├── markdownBuilder.ts │ │ ├── tableFormatter.ts │ │ └── treeFormatter.ts │ ├── index.ts │ ├── internal │ │ ├── encoding.ts │ │ ├── error-handler │ │ │ ├── errorHandler.ts │ │ │ ├── helpers.ts │ │ │ ├── index.ts │ │ │ ├── mappings.ts │ │ │ └── types.ts │ │ ├── health.ts │ │ ├── index.ts │ │ ├── logger.ts │ │ ├── performance.ts │ │ ├── requestContext.ts │ │ ├── runtime.ts │ │ └── startupBanner.ts │ ├── metrics │ │ ├── index.ts │ │ ├── registry.ts │ │ └── tokenCounter.ts │ ├── network │ │ ├── fetchWithTimeout.ts │ │ └── index.ts │ ├── pagination │ │ └── index.ts │ ├── parsing │ │ ├── csvParser.ts │ │ ├── dateParser.ts │ │ ├── frontmatterParser.ts │ │ ├── index.ts │ │ ├── jsonParser.ts │ │ ├── pdfParser.ts │ │ ├── xmlParser.ts │ │ └── yamlParser.ts │ ├── scheduling │ │ ├── index.ts │ │ └── scheduler.ts │ ├── security │ │ ├── idGenerator.ts │ │ ├── index.ts │ │ ├── rateLimiter.ts │ │ └── sanitization.ts │ ├── telemetry │ │ ├── index.ts │ │ ├── instrumentation.ts │ │ ├── metrics.ts │ │ ├── semconv.ts │ │ └── trace.ts │ └── types │ │ ├── guards.ts │ │ └── index.ts └── worker.ts ├── tsconfig.scripts.json ├── tsdoc.json └── typedoc.json /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/.prettierignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/README.md -------------------------------------------------------------------------------- /bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/bun.lock -------------------------------------------------------------------------------- /changelog/archive1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/changelog/archive1.md -------------------------------------------------------------------------------- /changelog/archive2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/changelog/archive2.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/package.json -------------------------------------------------------------------------------- /repomix.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/repomix.config.json -------------------------------------------------------------------------------- /schemas/cloudflare-d1-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/cloudflare-d1-schema.sql -------------------------------------------------------------------------------- /schemas/surrealdb/surrealdb-events-schema.surql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/surrealdb/surrealdb-events-schema.surql -------------------------------------------------------------------------------- /schemas/surrealdb/surrealdb-functions-schema.surql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/surrealdb/surrealdb-functions-schema.surql -------------------------------------------------------------------------------- /schemas/surrealdb/surrealdb-graph-schema.surql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/surrealdb/surrealdb-graph-schema.surql -------------------------------------------------------------------------------- /schemas/surrealdb/surrealdb-schema.surql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/surrealdb/surrealdb-schema.surql -------------------------------------------------------------------------------- /schemas/surrealdb/surrealdb-secure-schema.surql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/schemas/surrealdb/surrealdb-secure-schema.surql -------------------------------------------------------------------------------- /server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/server.json -------------------------------------------------------------------------------- /smithery.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/smithery.yaml -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/container/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/container/README.md -------------------------------------------------------------------------------- /src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/container/index.ts -------------------------------------------------------------------------------- /src/container/registrations/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/container/registrations/core.ts -------------------------------------------------------------------------------- /src/container/registrations/mcp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/container/registrations/mcp.ts -------------------------------------------------------------------------------- /src/container/tokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/container/tokens.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/mcp-server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/README.md -------------------------------------------------------------------------------- /src/mcp-server/prompts/definitions/code-review.prompt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/prompts/definitions/code-review.prompt.ts -------------------------------------------------------------------------------- /src/mcp-server/prompts/definitions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/prompts/definitions/index.ts -------------------------------------------------------------------------------- /src/mcp-server/prompts/prompt-registration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/prompts/prompt-registration.ts -------------------------------------------------------------------------------- /src/mcp-server/prompts/utils/promptDefinition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/prompts/utils/promptDefinition.ts -------------------------------------------------------------------------------- /src/mcp-server/resources/definitions/echo.resource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/resources/definitions/echo.resource.ts -------------------------------------------------------------------------------- /src/mcp-server/resources/definitions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/resources/definitions/index.ts -------------------------------------------------------------------------------- /src/mcp-server/resources/resource-registration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/resources/resource-registration.ts -------------------------------------------------------------------------------- /src/mcp-server/resources/utils/resourceDefinition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/resources/utils/resourceDefinition.ts -------------------------------------------------------------------------------- /src/mcp-server/resources/utils/resourceHandlerFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/resources/utils/resourceHandlerFactory.ts -------------------------------------------------------------------------------- /src/mcp-server/roots/roots-registration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/roots/roots-registration.ts -------------------------------------------------------------------------------- /src/mcp-server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/server.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/index.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/template-cat-fact.tool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/template-cat-fact.tool.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/template-code-review-sampling.tool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/template-code-review-sampling.tool.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/template-echo-message.tool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/template-echo-message.tool.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/template-image-test.tool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/template-image-test.tool.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/definitions/template-madlibs-elicitation.tool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/definitions/template-madlibs-elicitation.tool.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/tool-registration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/tool-registration.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/utils/index.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/utils/toolDefinition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/utils/toolDefinition.ts -------------------------------------------------------------------------------- /src/mcp-server/tools/utils/toolHandlerFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/tools/utils/toolHandlerFactory.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/ITransport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/ITransport.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/authFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/authFactory.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/authMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/authMiddleware.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/index.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/lib/authContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/lib/authContext.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/lib/authTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/lib/authTypes.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/lib/authUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/lib/authUtils.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/lib/withAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/lib/withAuth.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/strategies/authStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/strategies/authStrategy.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/strategies/jwtStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/strategies/jwtStrategy.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/auth/strategies/oauthStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/auth/strategies/oauthStrategy.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/httpErrorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/httpErrorHandler.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/httpTransport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/httpTransport.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/httpTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/httpTypes.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/index.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/sessionIdUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/sessionIdUtils.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/http/sessionStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/http/sessionStore.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/manager.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/stdio/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/stdio/index.ts -------------------------------------------------------------------------------- /src/mcp-server/transports/stdio/stdioTransport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/mcp-server/transports/stdio/stdioTransport.ts -------------------------------------------------------------------------------- /src/services/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/README.md -------------------------------------------------------------------------------- /src/services/graph/core/GraphService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/graph/core/GraphService.ts -------------------------------------------------------------------------------- /src/services/graph/core/IGraphProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/graph/core/IGraphProvider.ts -------------------------------------------------------------------------------- /src/services/graph/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/graph/index.ts -------------------------------------------------------------------------------- /src/services/graph/providers/surrealGraph.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/graph/providers/surrealGraph.provider.ts -------------------------------------------------------------------------------- /src/services/graph/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/graph/types.ts -------------------------------------------------------------------------------- /src/services/llm/core/ILlmProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/llm/core/ILlmProvider.ts -------------------------------------------------------------------------------- /src/services/llm/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/llm/index.ts -------------------------------------------------------------------------------- /src/services/llm/providers/openrouter.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/llm/providers/openrouter.provider.ts -------------------------------------------------------------------------------- /src/services/llm/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/llm/types.ts -------------------------------------------------------------------------------- /src/services/speech/core/ISpeechProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/core/ISpeechProvider.ts -------------------------------------------------------------------------------- /src/services/speech/core/SpeechService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/core/SpeechService.ts -------------------------------------------------------------------------------- /src/services/speech/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/index.ts -------------------------------------------------------------------------------- /src/services/speech/providers/elevenlabs.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/providers/elevenlabs.provider.ts -------------------------------------------------------------------------------- /src/services/speech/providers/whisper.provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/providers/whisper.provider.ts -------------------------------------------------------------------------------- /src/services/speech/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/services/speech/types.ts -------------------------------------------------------------------------------- /src/storage/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/README.md -------------------------------------------------------------------------------- /src/storage/core/IStorageProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/core/IStorageProvider.ts -------------------------------------------------------------------------------- /src/storage/core/StorageService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/core/StorageService.ts -------------------------------------------------------------------------------- /src/storage/core/storageFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/core/storageFactory.ts -------------------------------------------------------------------------------- /src/storage/core/storageValidation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/core/storageValidation.ts -------------------------------------------------------------------------------- /src/storage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/index.ts -------------------------------------------------------------------------------- /src/storage/providers/cloudflare/d1Provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/cloudflare/d1Provider.ts -------------------------------------------------------------------------------- /src/storage/providers/cloudflare/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/cloudflare/index.ts -------------------------------------------------------------------------------- /src/storage/providers/cloudflare/kvProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/cloudflare/kvProvider.ts -------------------------------------------------------------------------------- /src/storage/providers/cloudflare/r2Provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/cloudflare/r2Provider.ts -------------------------------------------------------------------------------- /src/storage/providers/fileSystem/fileSystemProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/fileSystem/fileSystemProvider.ts -------------------------------------------------------------------------------- /src/storage/providers/inMemory/inMemoryProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/inMemory/inMemoryProvider.ts -------------------------------------------------------------------------------- /src/storage/providers/supabase/supabase.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/supabase/supabase.types.ts -------------------------------------------------------------------------------- /src/storage/providers/supabase/supabaseProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/supabase/supabaseProvider.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/README.md -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/auth/authManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/auth/authManager.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/auth/permissionHelpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/auth/permissionHelpers.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/auth/scopeDefinitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/auth/scopeDefinitions.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/core/connectionManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/core/connectionManager.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/core/queryBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/core/queryBuilder.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/core/surrealDbClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/core/surrealDbClient.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/core/transactionManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/core/transactionManager.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/events/eventManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/events/eventManager.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/events/eventTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/events/eventTypes.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/events/triggerBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/events/triggerBuilder.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/functions/customFunctions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/functions/customFunctions.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/functions/functionRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/functions/functionRegistry.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/graph/graphOperations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/graph/graphOperations.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/graph/graphTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/graph/graphTypes.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/graph/pathFinder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/graph/pathFinder.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/graph/relationshipManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/graph/relationshipManager.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/index.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/introspection/schemaIntrospector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/introspection/schemaIntrospector.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/kv/surrealKvProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/kv/surrealKvProvider.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/migrations/migrationRunner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/migrations/migrationRunner.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/migrations/migrationTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/migrations/migrationTypes.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/query/forLoopBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/query/forLoopBuilder.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/query/subqueryBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/query/subqueryBuilder.ts -------------------------------------------------------------------------------- /src/storage/providers/surrealdb/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/storage/providers/surrealdb/types.ts -------------------------------------------------------------------------------- /src/types-global/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/types-global/errors.ts -------------------------------------------------------------------------------- /src/utils/formatting/diffFormatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/formatting/diffFormatter.ts -------------------------------------------------------------------------------- /src/utils/formatting/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/formatting/index.ts -------------------------------------------------------------------------------- /src/utils/formatting/markdownBuilder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/formatting/markdownBuilder.ts -------------------------------------------------------------------------------- /src/utils/formatting/tableFormatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/formatting/tableFormatter.ts -------------------------------------------------------------------------------- /src/utils/formatting/treeFormatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/formatting/treeFormatter.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/internal/encoding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/encoding.ts -------------------------------------------------------------------------------- /src/utils/internal/error-handler/errorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/error-handler/errorHandler.ts -------------------------------------------------------------------------------- /src/utils/internal/error-handler/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/error-handler/helpers.ts -------------------------------------------------------------------------------- /src/utils/internal/error-handler/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/error-handler/index.ts -------------------------------------------------------------------------------- /src/utils/internal/error-handler/mappings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/error-handler/mappings.ts -------------------------------------------------------------------------------- /src/utils/internal/error-handler/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/error-handler/types.ts -------------------------------------------------------------------------------- /src/utils/internal/health.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/health.ts -------------------------------------------------------------------------------- /src/utils/internal/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/index.ts -------------------------------------------------------------------------------- /src/utils/internal/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/logger.ts -------------------------------------------------------------------------------- /src/utils/internal/performance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/performance.ts -------------------------------------------------------------------------------- /src/utils/internal/requestContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/requestContext.ts -------------------------------------------------------------------------------- /src/utils/internal/runtime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/runtime.ts -------------------------------------------------------------------------------- /src/utils/internal/startupBanner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/internal/startupBanner.ts -------------------------------------------------------------------------------- /src/utils/metrics/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/metrics/index.ts -------------------------------------------------------------------------------- /src/utils/metrics/registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/metrics/registry.ts -------------------------------------------------------------------------------- /src/utils/metrics/tokenCounter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/metrics/tokenCounter.ts -------------------------------------------------------------------------------- /src/utils/network/fetchWithTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/network/fetchWithTimeout.ts -------------------------------------------------------------------------------- /src/utils/network/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/network/index.ts -------------------------------------------------------------------------------- /src/utils/pagination/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/pagination/index.ts -------------------------------------------------------------------------------- /src/utils/parsing/csvParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/csvParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/dateParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/dateParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/frontmatterParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/frontmatterParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/index.ts -------------------------------------------------------------------------------- /src/utils/parsing/jsonParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/jsonParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/pdfParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/pdfParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/xmlParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/xmlParser.ts -------------------------------------------------------------------------------- /src/utils/parsing/yamlParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/parsing/yamlParser.ts -------------------------------------------------------------------------------- /src/utils/scheduling/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/scheduling/index.ts -------------------------------------------------------------------------------- /src/utils/scheduling/scheduler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/scheduling/scheduler.ts -------------------------------------------------------------------------------- /src/utils/security/idGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/security/idGenerator.ts -------------------------------------------------------------------------------- /src/utils/security/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/security/index.ts -------------------------------------------------------------------------------- /src/utils/security/rateLimiter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/security/rateLimiter.ts -------------------------------------------------------------------------------- /src/utils/security/sanitization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/security/sanitization.ts -------------------------------------------------------------------------------- /src/utils/telemetry/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/telemetry/index.ts -------------------------------------------------------------------------------- /src/utils/telemetry/instrumentation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/telemetry/instrumentation.ts -------------------------------------------------------------------------------- /src/utils/telemetry/metrics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/telemetry/metrics.ts -------------------------------------------------------------------------------- /src/utils/telemetry/semconv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/telemetry/semconv.ts -------------------------------------------------------------------------------- /src/utils/telemetry/trace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/telemetry/trace.ts -------------------------------------------------------------------------------- /src/utils/types/guards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/types/guards.ts -------------------------------------------------------------------------------- /src/utils/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/utils/types/index.ts -------------------------------------------------------------------------------- /src/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/src/worker.ts -------------------------------------------------------------------------------- /tsconfig.scripts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/tsconfig.scripts.json -------------------------------------------------------------------------------- /tsdoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/tsdoc.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyanheads/mcp-ts-template/HEAD/typedoc.json --------------------------------------------------------------------------------