Paul Hernandez
093dab5f03
feat: Add enhanced prompts and resources ( #15 )
...
## Summary
- Add comprehensive documentation to all MCP prompt modules
- Enhance search prompt with detailed contextual output formatting
- Implement consistent logging and docstring patterns across prompt
utilities
- Fix type checking in prompt modules
## Prompts Added/Enhanced
- `search.py`: New formatted output with relevance scores, excerpts, and
next steps
- `recent_activity.py`: Enhanced with better metadata handling and
documentation
- `continue_conversation.py`: Improved context management
## Resources Added/Enhanced
- `ai_assistant_guide`: Resource with description to give to LLM to
understand how to use the tools
## Technical improvements
- Added detailed docstrings to all prompt modules explaining their
purpose and usage
- Enhanced the search prompt with rich contextual output that helps LLMs
understand results
- Created a consistent pattern for formatting output across prompts
- Improved error handling in metadata extraction
- Standardized import organization and naming conventions
- Fixed various type checking issues across the codebase
This PR is part of our ongoing effort to improve the MCP's interaction
quality with LLMs, making the system more helpful and intuitive for AI
assistants to navigate knowledge bases.
🤖 Generated with [Claude Code](https://claude.ai/code )
---------
Co-authored-by: phernandez <phernandez@basicmachines.co >
2025-02-27 20:48:56 -06:00
Paul Hernandez
0d7b0b3d7e
feat: Add new canvas tool to create json canvas files in obsidian. ( #14 )
...
Add new `canvas` tool to create json canvas files in obsidian.
---------
Co-authored-by: phernandez <phernandez@basicmachines.co >
2025-02-25 21:21:05 -06:00
Paul Hernandez
37a01b806d
feat: Incremental sync on watch ( #13 )
...
- incremental sync on watch
- sync non-markdown files in knowledge base
- experimental `read_resource` tool for reading non-markdown files in raw form (pdf, image)
2025-02-24 22:13:15 -06:00
phernandez
2c8ed1737d
chore: remove unused tests
2025-02-18 20:45:47 -06:00
phernandez
02f8e86692
feat: add pagination to read_notes
2025-02-18 20:42:19 -06:00
phernandez
0123544556
feat: add pagination to build_context and recent_activity
2025-02-18 20:22:35 -06:00
phernandez
00d23a5ee1
fix: add logfire spans to cli
2025-02-18 19:56:20 -06:00
phernandez
812136c8c2
fix: add logfire spans to cli
2025-02-18 19:08:46 -06:00
phernandez
3e8e3e8961
fix: add logfire instrumentation to tools
2025-02-18 18:52:09 -06:00
Paul Hernandez
0689e7a730
feat: return semantic info in markdown after write_note ( #11 )
...
Co-authored-by: phernandez <phernandez@basicmachines.co >
2025-02-17 23:33:11 -06:00
phernandez
41f5b1667b
format code
2025-02-15 14:38:19 -06:00
phernandez
e0803734e6
fix: handle memory:// url format in read_note tool
2025-02-15 12:00:03 -06:00
phernandez
28513c8b8d
lint code
2025-02-12 22:39:22 -06:00
Paul Hernandez
5b4f0eafcc
Pre release fixups ( #5 )
...
* configure logging
* set mcp output logging also
* fix type check errors
* fix type check
* rename Permalink schema type
* fix type errors
* add typechecks to ci workflow
* pytest coverage setup
* add tests for status cli
* sync tests coverage
* watch_service test coverage
* tests for tool_utils.py
* clean up imports
* file_utils coverage
* markdown plugins coverage
* 99% test coverage
* more test coverage, remove ObservationCategory
* more tool coverage
* fix type-check
* format, upgrade deps
---------
Co-authored-by: phernandez <phernandez@basicmachines.co >
2025-02-12 08:23:10 -06:00
phernandez
3199ab0217
simplify MemoryUrl to be validated string
2025-02-01 13:42:48 -06:00
phernandez
572187a59a
add verbose=True to write_note
2025-01-31 20:41:31 -06:00
phernandez
eafe563cfa
add title/folder to EntitySchema
2025-01-31 19:29:16 -06:00
phernandez
835061a938
refactor entity_service to use file/markdown
2025-01-30 16:11:30 -05:00
phernandez
c2aa947be9
remove observation, relation services
2025-01-27 17:01:34 -06:00
phernandez
deb52a71d9
remove observations from entity create
2025-01-26 22:30:09 -06:00
phernandez
18bd850019
fix updates and save content. remove entity.summary
2025-01-26 00:00:37 -06:00
phernandez
e39132bc1b
fix recent_activity tool type arg
2025-01-22 23:12:59 -06:00
phernandez
526baead18
add delete_note tool
2025-01-21 20:08:52 -06:00
phernandez
18d4584652
make write_note overwrite existing notes
2025-01-21 19:27:43 -06:00
phernandez
5ba6d0d1f5
add fuzzy matching to notes
2025-01-20 20:26:16 -06:00
phernandez
224b11332c
add notes tools
2025-01-20 19:05:16 -06:00
phernandez
02e6c763cf
improve TimeFrame and recent_activity types
2025-01-20 16:17:44 -06:00
phernandez
14f520c272
remove activity router, replace with memory/recent
2025-01-20 15:35:08 -06:00
phernandez
0b7b77f9e8
fix tests for memory
2025-01-19 16:47:42 -06:00
phernandez
bc6632732e
speed up context query
2025-01-19 10:06:14 -06:00
phernandez
32606d771d
fix tests for context and permalinks
2025-01-18 23:54:28 -06:00
phernandez
db9da9051a
add ai_edit tool
2025-01-18 21:17:34 -06:00
phernandez
7322bb5350
refactor tools, remove BasicMemoryServer, update mcp sdk
2025-01-18 18:48:22 -06:00
phernandez
ae9926f54d
add discussion tools
2025-01-18 10:23:01 -06:00
phernandez
c5d21276de
change entity.path_id to entity.permalink
2025-01-12 16:47:21 -06:00
phernandez
90a301d4ce
rename entity.name to entity.title
2025-01-12 13:48:16 -06:00
phernandez
eb2b0a46fc
fix tests
2025-01-11 00:40:46 -06:00
phernandez
79380e33ec
fix services
2025-01-10 20:22:05 -06:00
phernandez
b68e7461ef
get entity content via tool
2025-01-09 14:53:02 -06:00
phernandez
1c6836d83f
fix tests
2025-01-07 20:29:59 -06:00
phernandez
545c1a77f3
remove document code
2025-01-07 00:20:11 -06:00
phernandez
c320f64b53
get tests working
2025-01-06 21:08:19 -06:00
phernandez
fa7e986d3b
fix tests, add SearchResult response type for search
2025-01-04 22:22:38 -06:00
phernandez
dbe9cea261
add search indexing to api routes
2025-01-04 20:54:52 -06:00
phernandez
4d3f17cc43
fix open_nodes test
2025-01-02 13:41:59 -06:00
phernandez
860b1415ef
fix get_schema
2025-01-02 13:29:04 -06:00
phernandez
705ca3e4c8
fix tests
2024-12-30 23:42:57 -06:00
phernandez
e50664c0b1
test schema tools wip
2024-12-30 22:52:57 -06:00
phernandez
856f6a9d5b
Merge branch 'main' into mcp-tools-usage
2024-12-30 21:06:49 -06:00
phernandez
289fcf7a93
fix tests
2024-12-30 21:01:36 -06:00