{"_id":"@aaplugin/extension-mcp","_rev":"2-1e0a385bc9bb407f123f6878402d114c","name":"@aaplugin/extension-mcp","dist-tags":{"latest":"1.0.0-beta.2"},"versions":{"1.0.0-beta.1":{"name":"@aaplugin/extension-mcp","version":"1.0.0-beta.1","author":{"url":"https://github.com/wh1teAlter","name":"wh1teAlter"},"license":"MIT","_id":"@aaplugin/extension-mcp@1.0.0-beta.1","maintainers":[{"name":"wh1t3alter","email":"2369332823@qq.com"}],"homepage":"https://github.com/wh1teAlter/aaplugin#readme","bugs":{"url":"https://github.com/wh1teAlter/aaplugin/issues"},"dist":{"shasum":"e4e4a6571359559eff8c22a669b57ed0df2a5490","tarball":"https://registry.npmjs.org/@aaplugin/extension-mcp/-/extension-mcp-1.0.0-beta.1.tgz","fileCount":5,"integrity":"sha512-IlfOOdDWBEBUfT8Ll7HYpZ/XmhpjL0bC2UyMgCi99Y4gsftNCQzYxKFessPYI53aMHutiBhpGzIat4G/W4TRFg==","signatures":[{"sig":"MEQCIGVYAmDcYbR6uSwrJLoILBGIf1FZ39nzz/Hj4jbuofaHAiAgCLsCa6ifx5lkWrqvOWYrn2A1XtImFw9ZbHQyhPxugA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49334},"type":"module","_from":"file:aaplugin-extension-mcp-1.0.0-beta.1.tgz","engines":{"node":"^20.19.0 || ^22.13.0 || >=23.5.0"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"test":"vitest run --passWithNoTests","build":"tsdown","pretest":"pnpm --filter @aaplugin/core run build && pnpm --filter @aaplugin/kit run build && pnpm --filter @aaplugin/platform-claude-code run build && pnpm --filter @aaplugin/platform-codex run build && pnpm run build","typecheck":"tsc -p tsconfig.json"},"_npmUser":{"name":"wh1t3alter","email":"2369332823@qq.com"},"_resolved":"/private/var/folders/07/ymy0fnqn20d7p_4hkrf8z97c0000gn/T/58ad7ebf8f1f8690b20d5161e6bdd774/aaplugin-extension-mcp-1.0.0-beta.1.tgz","_integrity":"sha512-IlfOOdDWBEBUfT8Ll7HYpZ/XmhpjL0bC2UyMgCi99Y4gsftNCQzYxKFessPYI53aMHutiBhpGzIat4G/W4TRFg==","repository":{"url":"git+https://github.com/wh1teAlter/aaplugin.git","type":"git","directory":"packages/extensions/mcp"},"_npmVersion":"10.9.4","description":"Portable MCP authoring and Platform contributors for AAPlugin.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.14","vitest":"^4.1.10","typescript":"^6.0.3","@types/node":"^20.19.0","@aaplugin/kit":"^1.0.0-beta.1","@modelcontextprotocol/sdk":"^1.30.0"},"peerDependencies":{"@aaplugin/kit":"^1.0.0-beta.1"},"_npmOperationalInternal":{"tmp":"tmp/extension-mcp_1.0.0-beta.1_1787753765338_0.3625169667074233","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-beta.2":{"_id":"@aaplugin/extension-mcp@1.0.0-beta.2","bugs":{"url":"https://github.com/wh1teAlter/aaplugin/issues"},"dist":{"shasum":"6f77b6d926eb1dbc3ed3e2dcab879994d5216e36","tarball":"https://registry.npmjs.org/@aaplugin/extension-mcp/-/extension-mcp-1.0.0-beta.2.tgz","fileCount":5,"integrity":"sha512-klY3m1nDC15Hc274rbtrzcH3r/k99jhmAD8lCosTFAROzvbsfR7rLXXDpm8sj4Aj35u+4MJsTcqYTPJMwwihcQ==","signatures":[{"sig":"MEYCIQCkY+nyyyNu70PXEENYlpf+ofuK1di/pvUFbBY1AngZOwIhAOQF2Y5JLwwo53NzbCVvE2MgmitnONiUTyv5mSavkAdG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGQZnM9WoXsNu2IOtJQgSJ1Sbkdek0T5DgDtjV+VW7MUAiEAihCWKQo1UyBq1UVEx3msfb8a1bclRP06dlDmTuNGC3w="}],"unpackedSize":34244},"name":"@aaplugin/extension-mcp","type":"module","_from":"file:aaplugin-extension-mcp-1.0.0-beta.2.tgz","author":{"url":"https://github.com/wh1teAlter","name":"wh1teAlter"},"engines":{"node":"^20.19.0 || ^22.13.0 || >=23.5.0"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"license":"MIT","scripts":{"test":"vitest run --passWithNoTests","build":"tsdown","pretest":"pnpm --filter @aaplugin/core run build && pnpm --filter @aaplugin/kit run build && pnpm --filter @aaplugin/platform-claude-code run build && pnpm --filter @aaplugin/platform-codex run build && pnpm run build","typecheck":"tsc -p tsconfig.json"},"version":"1.0.0-beta.2","_npmUser":{"name":"wh1t3alter","email":"2369332823@qq.com"},"homepage":"https://github.com/wh1teAlter/aaplugin#readme","_resolved":"/private/var/folders/07/ymy0fnqn20d7p_4hkrf8z97c0000gn/T/b2604b7a234c9d39e1a79553d1728dac/aaplugin-extension-mcp-1.0.0-beta.2.tgz","_integrity":"sha512-klY3m1nDC15Hc274rbtrzcH3r/k99jhmAD8lCosTFAROzvbsfR7rLXXDpm8sj4Aj35u+4MJsTcqYTPJMwwihcQ==","repository":{"url":"git+https://github.com/wh1teAlter/aaplugin.git","type":"git","directory":"packages/extensions/mcp"},"_npmVersion":"10.9.4","description":"Portable MCP authoring and Platform contributors for AAPlugin.","directories":{},"maintainers":[{"name":"wh1t3alter","email":"2369332823@qq.com"}],"sideEffects":false,"_nodeVersion":"22.21.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^6.0.3","@types/node":"^20.19.43","@aaplugin/kit":"^1.0.0-beta.2"},"peerDependencies":{"@aaplugin/kit":"^1.0.0-beta.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/extension-mcp_1.0.0-beta.2_1788859547065_0.2314189862204319"}}},"time":{"created":"2026-08-26T14:16:05.046Z","modified":"2026-09-08T09:25:47.341Z","1.0.0-beta.1":"2026-08-26T14:16:05.489Z","1.0.0-beta.2":"2026-09-08T09:25:47.148Z"},"bugs":{"url":"https://github.com/wh1teAlter/aaplugin/issues"},"author":{"url":"https://github.com/wh1teAlter","name":"wh1teAlter"},"license":"MIT","homepage":"https://github.com/wh1teAlter/aaplugin#readme","repository":{"url":"git+https://github.com/wh1teAlter/aaplugin.git","type":"git","directory":"packages/extensions/mcp"},"description":"Portable MCP authoring and Platform contributors for AAPlugin.","maintainers":[{"name":"wh1t3alter","email":"2369332823@qq.com"}],"readme":"# @aaplugin/extension-mcp\n\nOptional HTTP MCP declarations and Platform Contributors for `aaplugin`.\n\nRequires Node.js `^20.19.0 || ^22.13.0 || >=23.5.0`.\n\n`可选的 MCP HTTP 声明，以及面向各 AAPlugin Platform 的适配实现。`\n\n```bash\npnpm add -D @aaplugin/kit \\\n  @aaplugin/platform-claude-code \\\n  @aaplugin/extension-mcp\n```\n\n```ts\nimport { defineConfig } from '@aaplugin/kit';\nimport claudeCode from '@aaplugin/platform-claude-code';\nimport mcp from '@aaplugin/extension-mcp';\n\nexport default defineConfig({\n  name: 'my-plugin',\n  version: '1.0.0',\n  description: 'Reusable AI workflows.',\n  platforms: [claudeCode()],\n  extensions: [mcp()],\n});\n```\n\nRemote Streamable HTTP is declarative; provide only the endpoint and runtime secret references:\n\n```ts\n// src/mcp/docs/mcp.ts\nimport type { McpServer } from '@aaplugin/extension-mcp';\n\nexport default {\n  transport: 'http',\n  url: 'https://example.com/mcp',\n  auth: { type: 'bearer', env: 'DOCS_TOKEN' },\n  headers: { 'X-Tenant': { env: 'TENANT_ID' } },\n} satisfies McpServer;\n```\n\nHTTP-only MCP validates declarations and target configuration without connecting to a service, reading secret values, compiling code or starting a server. Production endpoints require HTTPS; development also permits loopback HTTP.\n\n自建 stdio、外部 command/args stdio 和 MCP compile 选项均不受支持。旧配置会明确失败；共享 Compiler、Hooks 和 Core Node Runtime 保留。\n\n| Transport | Claude Code | Codex | Cursor | Antigravity | OpenCode | Pi |\n| --- | --- | --- | --- | --- | --- | --- |\n| Remote HTTP | Native | Native | Native | Native | Native | Unsupported |\n\nUnsupported transports are reported and never replaced with fabricated client behavior. Contracts were last rechecked on 2026-08-06 against [Claude Code MCP](https://code.claude.com/docs/en/mcp), [Codex MCP](https://learn.chatgpt.com/docs/extend/mcp), [Cursor MCP](https://cursor.com/docs/context/mcp), [Antigravity Plugins](https://antigravity.google/docs/plugins?app=cli), [OpenCode MCP](https://opencode.ai/docs/mcp-servers/), and [Pi Packages](https://pi.dev/docs/latest/packages).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}