Repository navigation
feat(cursor-plugin): add local read-only AKB MCP integration - #79
AmanitaHouse wants to merge 20 commits into
Conversation
Cursor and Claude Code use the same POSIX entry points. .gitattributes stops a Windows checkout from putting CR into those scripts, which breaks sh under WSL. The Claude plugin identity is unchanged.
Point manifests, docs, skills and scaffolding defaults at ApolloTeam-dev/ApolloKnowledgeBase while still accepting a developer-named alternate clone such as AmanitaHouse.
The marketplace plugin entry included metadata the published schema rejects. Pin those schemas and fail the static check when an entry uses an unsupported field.
The GitHub marketplace indexer does not install a root source of "." or "./". Generate a self-contained akb/ from the canonical files and fail when that copy drifts.
Git was normalising those akb copies to LF, so the package freshness check failed on Linux.
Ground apollo-build and guided project setup on a shared classifier so missing or upload-capable targets are never treated as safe compile commands.
apollo-build now distinguishes resolvable v1.0/v1.2 PREFIX shapes and wired C_INCL_NDK usage from uncertain cases, so a Dev/Stable label alone cannot invent a compiler path or elevate an informational finding to PROBLEM=.
Reject unknown languages, report that the C-style main.c starter is not a dedicated C++ or assembler program, and keep default workflow checks fixture-only unless --run-toolchain is passed.
… regression check. Omits the skill and C-starter edits already submitted in upstream PR ApolloTeam-dev#66; those land separately. This remainder covers the experimental C++ starter comment, generated akb/ mirrors and the shared-workflow regression.
Document that the v1.2 label alone does not identify Make targets, and that the inspected installer creates ndk-include rather than the Makefile ndk32/ndk39 paths.
Ship stdio MCP packaging, Windows cmd launch, protocol tests, and docs so local installs can expose search and document tools without credentials.
…ver. Content-Length framing never parsed the client's initialize request, so every connection timed out.
Unblocks package_cursor_plugin --check and check_cursor_plugin package matching on the Cursor plugin contribution stack.
Review note — MCP implementation and stacked-PR dependencyThis PR adds the AKB Cursor plugin's local, read-only MCP integration. It depends on the preceding Cursor plugin contribution stack, ending at #78 ( The MCP-specific delta is 16 files, available here: Verification on the published contribution:
The original interoperability defect was incorrect GitHub's fork-workflow approval is still required before hosted CI can complete. The existing Windows/WSL disposable-install validation issue and Personal Marketplace importer issue are separate from the MCP protocol correction. Please review the incremental comparison after #78. This contribution should be integrated in dependency order. |
Summary
Add a standards-compliant local stdio MCP server to the AKB Cursor plugin, allowing Cursor Agent to retrieve knowledge-base information through four read-only tools.
Stacking note: This contribution sits on the open Cursor plugin stack (#65–#78), especially #65 (plugin entry points) and #68 (
akb/package). The MCP-only delta versusupstream-contrib/13-toolchain-contract-docsis three commits (6c1f587,83b2902,cd900e1). Reviewers can use:AmanitaHouse/ApolloKnowledgeBase@upstream-contrib/13-toolchain-contract-docs...upstream-contrib/14-cursor-plugin-mcp
Implementation
tools/akb_mcp_launch.cmd/.js→tools/akb_mcp_server.py)mcp.json;plugin.jsonsetsmcpServers: mcp.json)2025-11-25)akb_get_info,akb_list_sections,akb_search,akb_read_documentContent-Lengthframing)..and absolute paths refused)tools/test_akb_mcp.py) and Cursor plugin documentation updatesmcp.jsonin the generatedakb/treeakb/.../main-os-friendly.cmirror matched to the canonical skill asset sopackage_cursor_plugin.py --checkpassesVerification
From contribution head
cd900e182d6abb14533f2ac2c3d3adb44d253e34(equivalent MCP behaviour to verified fork commit949f920, plus upstream URL adaptation and packaging sync):python tools/test_akb_mcp.py)python tools/package_cursor_plugin.py --check)949f920): initialize,tools/list,tools/callPASS via official MCP Python SDK 1.32.2 and via the Windows cmd launcherCallDynamicToolnamespaceplugin-akb-akb-knowledge, toolakb_read_document, pathlessons/2026-11-akb-verification.mdreturned title Automated verification of the knowledge base, and the first V4 test runs2025-11-25, receivednotifications/initialized, completedtools/listandtools/callwith no truncation reportedcheck_cursor_plugin.pystatic/manifest/package matching: PASS; Windows disposable-install PowerShell→WSL path probes still fail in this environment (pre-existing limitation; not claimed as PASS)Compatibility
repositoryfield remainshttps://github.com/ApolloTeam-dev/ApolloKnowledgeBaseKnown limitations
Review guidance
The key standards correction was replacing legacy
Content-Lengthframing with newline-delimited JSON-RPC. Content-Length framing prevented the standard MCP stdio client (and Cursor) from dispatchinginitialize; newline framing restored interoperability with both the official MCP SDK and Cursor.Please review the MCP-only compare link above when evaluating Files Changed against the full stack that still targets
mainwhile #65–#78 remain open.