feat: add MCP server for tool-agnostic AI integration#27
Open
CoderMungan wants to merge 2 commits intoActiveMemory:mainfrom
Open
feat: add MCP server for tool-agnostic AI integration#27CoderMungan wants to merge 2 commits intoActiveMemory:mainfrom
CoderMungan wants to merge 2 commits intoActiveMemory:mainfrom
Conversation
7c7f11e to
82422ec
Compare
Implement Model Context Protocol (JSON-RPC 2.0 over stdin/stdout) server that exposes ctx context as MCP resources and tools. Resources: 7 context files + assembled agent packet Tools: ctx_status, ctx_add, ctx_complete, ctx_drift All tools delegate to existing internal packages — no duplicated logic. Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client. Signed-off-by: CoderMungan <codermungan@gmail.com>
- errcheck: check fmt.Fprintf return values - gosec G705: suppress false positive (stdout, not HTTP) - staticcheck QF1012: use fmt.Fprintf instead of WriteString+Sprintf - staticcheck S1005: remove unnecessary blank identifier Signed-off-by: CoderMungan <codermungan@gmail.com>
82422ec to
90c27cd
Compare
Member
|
Thanks for your contributions @CoderMungan 🙏 This is a great proof-of-concept. I'll come up with details. |
Member
|
Before I beat this to the ground here are the strength in this PR that I see:
Expext constructive criticisim, and a hint of ctx-Manifesto-driven opinions next :D . -- To be clear; this is the right path. I do want to land it. I just want to land the the right way: The |
josealekhine
added a commit
that referenced
this pull request
Mar 6, 2026
Design spec for exposing ctx context over Model Context Protocol. Covers resources, tools, prompts, behavioral discipline stack, path-agnostic multi-project serving, and coexistence with hooks. Includes immediate action items for PR #27 alignment. Signed-off-by: Jose Alekhinne <jose@ctx.ist>
Member
|
@CoderMungan I've added some outstanding items to be done before a "minimally delightful" PR merge; and also scooped our near and mid future of the capability here: https://github.com/ActiveMemory/ctx/blob/main/specs/mcp-server.md Thank you again for your valuable contribution 🙏 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Model Context Protocol (JSON-RPC 2.0 over stdin/stdout) server that exposes ctx context as MCP resources and tools.
Resources: 7 context files + assembled agent packet
Tools: ctx_status, ctx_add, ctx_complete, ctx_drift
All tools delegate to existing internal packages — no duplicated logic. Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client.