Closed
[WIP] Add M365 integration support to Project Memory MCP server#3
Conversation
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.
M365Ref,SyncSource,SyncStatemodels tosrc/models.py; updateRefsIndexEntrywithm365_refsSYNC_YAML_TEMPLATEtosrc/templates.pysrc/filesystem.py: M365 ref parser,_sync.yamlprotection, sync state methods (get_sync_state,update_sync_state,add_sync_source,list_projects_due_for_sync,list_projects_due_for_synthesis,resolve_m365_ref), extendget_refs_formemory://m365resource insrc/server.py; updateget_project_contextdeep modegenerate_m365_guide()tosrc/guide.pyTestSyncState,TestM365RefParser,TestRefsIndexM365,TestResolveM365Ref,TestListDueForSync,TestM365GuideResourceOriginal prompt
Build Prompt — M365 Integration Layer (Phase 4a + 4b)
What you are adding
Extend the existing Project Memory MCP server with M365 integration support.
This covers three things:
_sync.yaml— new per-project file for M365 source registration and sync watermarksresolve_m365_reftool for resolving M365 references from project files_refs-index.jsonparsing to index M365 reference tokens[tm:],[ol:],[sp:]syntaxCritical design constraint — M365 optional
The memory MCP server must work perfectly without any M365 connection.
M365 is an optional enhancement layer, not a dependency.
Rules:
and include a
m365_available: falseflag in the result when M365is not reachable — they never block or raise
_sync.yamlfiles are valid and useful even with no M365 configured_sync.yamlis fully functional — treat missing_sync.yamlas "no M365 sources configured", not as an errorPart 1 —
_sync.yamlschemaLocation
projects/{slug}/_sync.yamlFull schema