import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";const transport = new StdioServerTransport();await server.connect(transport);
Uses the McpServer class from @modelcontextprotocol/sdk.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Toolshed","colors":{"primary":"#0F7B3F","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/philoventures/dQfJpi9K8Rxy2njJ/logo/light.svg?fit=max\u0026auto=format\u0026n=dQfJpi9K8Rxy2njJ\u0026q=85\u0026s=d2d5ada76515b99fd9238ffe45cf307d","dark":"https://mintcdn.com/philoventures/dQfJpi9K8Rxy2njJ/logo/dark.svg?fit=max\u0026auto=format\u0026n=dQfJpi9K8Rxy2njJ\u0026q=85\u0026s=7c52960c9d6ffa0726af3992c9a8b1c6"},"favicon":"https://mintcdn.com/philoventures/dQfJpi9K8Rxy2njJ/favicon.svg?fit=max\u0026auto=format\u0026n=dQfJpi9K8Rxy2njJ\u0026q=85\u0026s=a9dca57f708ba95fe148e0215a5cfa2a","navbar":{"links":[{"href":"https://philoventures.com","label":"Philo Ventures"}]},"contextual":{"options":["copy","view","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Philo-Studio/toolshed"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"philoventures","hasAudioNarration":false,"actualSubdomain":"philoventures","customDomains":["docs.toolshed.philo.ventures"],"gitSource":{"type":"github","owner":"philo-studio","repo":"toolshed","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21b6eb29747677fe1452ad","collectionId":"34c9793b-8f3a-4fd8-a21d-df19e7676047","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a21b6eb29747677fe1452ad:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":26},{"language":"default","tag":"Plugins","count":16},{"language":"default","tag":"Packages","count":10},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Server API","count":9},{"language":"default","tag":"CLI","count":6},{"language":"default","tag":"CLI Commands","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"MCP Tools","count":6},{"language":"default","tag":"MCP Server","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"packages/mcp-host","slug":"/packages/mcp-host","pageMetadata":{"title":"@toolshed/mcp-host","description":"MCP server creation and hosting.","href":"/packages/mcp-host"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"MCP server creation and hosting.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The mcp-host package provides a single function that creates an MCP server with Toolshed’s four tools.`}),`\n`,_jsx(Heading,{level:`2`,id:`createmcpserver-deps`,children:`createMcpServer(deps)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createMcpServer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@toolshed/mcp-host\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` server`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createMcpServer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` runtime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allTools`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` searchTools`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` elicitation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resumeRemote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// optional`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`mcpserverdeps`,children:`McpServerDeps`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`runtime`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Runtime`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Execution runtime (local or Vercel)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allTools`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ToolDefinition[]`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Full tool catalog`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`searchTools`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(query, limit) => ToolDefinition[]`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Search function`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`elicitation`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ElicitationEngine`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Local elicitation engine`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resumeRemote`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(executionId, approved, data?) => Promise\u003cunknown>`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Remote resume callback`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`created-tools`,children:`Created tools`}),`\n`,_jsxs(_components.p,{children:[`The returned `,_jsx(_components.code,{children:`McpServer`}),` exposes four tools:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`See`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`run`})}),_jsx(_components.td,{children:`Execute TypeScript in sandbox`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/mcp/run`,children:`run`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search_tools`})}),_jsx(_components.td,{children:`Fuzzy search tool catalog`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/mcp/search-tools`,children:`search_tools`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`read_tool`})}),_jsx(_components.td,{children:`Get tool definition by path`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/mcp/read-tool`,children:`read_tool`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resume`})}),_jsx(_components.td,{children:`Resolve pending elicitation`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/mcp/resume`,children:`resume`})})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`usage-with-stdio-transport`,children:`Usage with stdio transport`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`StdioServerTransport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@modelcontextprotocol/sdk/server/stdio.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` transport`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` StdioServerTransport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` server`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`connect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`transport`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Uses the `,_jsx(_components.code,{children:`McpServer`}),` class from `,_jsx(_components.code,{children:`@modelcontextprotocol/sdk`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"@toolshed/mcp-host","description":"MCP server creation and hosting.","href":"/packages/mcp-host"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"createMcpServer(deps)","slug":"createmcpserver-deps","depth":2,"children":[{"title":"McpServerDeps","slug":"mcpserverdeps","depth":3,"children":[]},{"title":"Created tools","slug":"created-tools","depth":3,"children":[]},{"title":"Usage with stdio transport","slug":"usage-with-stdio-transport","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"philoventures","siteName":"Toolshed","title":"@toolshed/mcp-host - Toolshed","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-23T23:28:27.234Z","originalFileLocation":"packages/mcp-host.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"MCP server creation and hosting.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Toolshed\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"@toolshed/mcp-host - Toolshed\">\u003cmeta data-mint-head property=\"og:description\" content=\"MCP server creation and hosting.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Toolshed\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.toolshed.philo.ventures/packages/mcp-host\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://philoventures.mintlify.app/_mintlify/api/og/v2?division=Package+Reference\u0026amp;title=%40toolshed%2Fmcp-host\u0026amp;description=MCP+server+creation+and+hosting.\u0026amp;theme=99e45f3e3531691fab7cca58\u0026amp;signature=d75b0a1e1f33f12c94811b237b91f18fdfa295fab5b89d6818658c00979116f6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"@toolshed/mcp-host - Toolshed\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"MCP server creation and hosting.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://philoventures.mintlify.app/_mintlify/api/og/v2?division=Package+Reference\u0026amp;title=%40toolshed%2Fmcp-host\u0026amp;description=MCP+server+creation+and+hosting.\u0026amp;theme=99e45f3e3531691fab7cca58\u0026amp;signature=d75b0a1e1f33f12c94811b237b91f18fdfa295fab5b89d6818658c00979116f6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/philoventures/-Q3KWbwb9_9Sv3hd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Toolshed\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F7B3F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.toolshed.philo.ventures/packages/mcp-host\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/packages/mcp-host.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.toolshed.philo.ventures/#organization\",\"name\":\"Toolshed\",\"url\":\"https://docs.toolshed.philo.ventures\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/philoventures/dQfJpi9K8Rxy2njJ/logo/light.svg?fit=max\u0026auto=format\u0026n=dQfJpi9K8Rxy2njJ\u0026q=85\u0026s=d2d5ada76515b99fd9238ffe45cf307d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.toolshed.philo.ventures#website\",\"name\":\"Toolshed\",\"url\":\"https://docs.toolshed.philo.ventures\",\"publisher\":{\"@id\":\"https://docs.toolshed.philo.ventures/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.toolshed.philo.ventures/packages/mcp-host#webpage\",\"url\":\"https://docs.toolshed.philo.ventures/packages/mcp-host\",\"name\":\"@toolshed/mcp-host\",\"description\":\"MCP server creation and hosting.\",\"dateModified\":\"2026-04-23T23:28:27.234Z\",\"isPartOf\":{\"@id\":\"https://docs.toolshed.philo.ventures#website\"},\"breadcrumb\":{\"@id\":\"https://docs.toolshed.philo.ventures/packages/mcp-host#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.toolshed.philo.ventures/packages/mcp-host#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Package Reference\",\"item\":\"https://docs.toolshed.philo.ventures/packages/sdk\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"@toolshed/mcp-host\",\"item\":\"https://docs.toolshed.philo.ventures/packages/mcp-host\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.toolshed.philo.ventures/packages/mcp-host#article\",\"headline\":\"@toolshed/mcp-host\",\"name\":\"@toolshed/mcp-host\",\"description\":\"MCP server creation and hosting.\",\"url\":\"https://docs.toolshed.philo.ventures/packages/mcp-host\",\"mainEntityOfPage\":{\"@id\":\"https://docs.toolshed.philo.ventures/packages/mcp-host#webpage\"},\"dateModified\":\"2026-04-23T23:28:27.234Z\",\"publisher\":{\"@id\":\"https://docs.toolshed.philo.ventures/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.toolshed.philo.ventures#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Toolshed\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Toolshed","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/Philo-Studio/toolshed"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"MCP Tools","pages":[{"title":"MCP Tools","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/server/overview"}]},{"tab":"Packages","groups":[{"group":"Package Reference","pages":[{"title":"@toolshed/sdk","href":"/packages/sdk"},{"title":"@toolshed/shared","href":"/packages/shared"},{"title":"@toolshed/kernel","href":"/packages/kernel"},{"title":"@toolshed/sources","href":"/packages/sources"},{"title":"@toolshed/policy","description":"Authorization, role-based filtering, and annotation resolution.","href":"/packages/policy"},{"title":"@toolshed/mcp-host","href":"/packages/mcp-host"}]},{"group":"Reference","pages":[{"title":"Schema Reference","description":"Complete Zod schema definitions used across Toolshed.","href":"/reference/schemas"},{"title":"Tool Path Convention","href":"/reference/tool-paths"},{"title":"PluginContext Reference","href":"/reference/plugin-context"},{"title":"Environment Variables","href":"/reference/environment-variables"}]}]}]},"title":"@toolshed/mcp-host - Toolshed","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}