Skip to content

Tutorial scaffolding 01 #1293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

mmacy
Copy link

@mmacy mmacy commented Aug 22, 2025

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

mmacy and others added 12 commits August 14, 2025 19:23
Add comprehensive instructions for building and viewing documentation locally,
including macOS Cairo library workaround and development workflow details.
Add documentation build section to CONTRIBUTING.md
* fix indentation in CONTRIBUTING.md

* fix (more) indentation in CONTRIBUTING.md
* docs: improve comprehensive docstring coverage throughout MCP SDK

Add extensive docstrings following Google Python Style Guide with
Markdown formatting for mkdocs-material compatibility.

## Enhanced documentation for:

### Core framework
- **FastMCP**: Main server class with detailed Args/Examples sections
- **Context**: Request context with capability descriptions
- **Tool/Resource/Prompt**: Base classes with comprehensive attributes

### Client implementation
- **ClientSession**: Enhanced call_tool() with extensive examples
- Added initialization and core method documentation

### Exception handling
- **FastMCPError hierarchy**: Detailed error descriptions and use cases
- **McpError**: Protocol error handling documentation

### Utilities and helpers
- **RequestContext**: Request metadata and session information
- **ToolManager/Resource classes**: Registration and execution docs

## Standards followed:
- Google Python Style Guide format (Args/Returns/Raises)
- Sentence case headings throughout
- Examples properly placed in Examples sections
- mkdocs-material compatible Markdown formatting
- Type safety maintained (all tests pass)

## Quality assurance:
✅ Code formatted with Ruff
✅ Type checking passes (Pyright)
✅ Linting checks pass
✅ Full test suite passes (528 tests)

Improves developer experience with comprehensive API documentation
covering public interfaces, usage patterns, and examples.

* fix escaped docstring fencing

* Revert "fix escaped docstring fencing"

This reverts commit 1e25f60.
* Fix griffe warnings in mkdocs documentation generation

- Remove **extra parameter documentation that doesn't match function signature in fastmcp/server.py
- Fix malformed docstring structure in func_metadata.py by moving content to proper Note section
- Correct parameter name mismatch in lowlevel/server.py lifespan function docstring

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* autgenerate API reference nav

---------

Co-authored-by: Claude <noreply@anthropic.com>
* site config (URL, site name, API ref tweaks)

* Shard README into *.md in docs/

* minor quickstart tweak
* new example docs

* fixed nav

* fix doc index and TOC

* examples feature matrix

* populate transport column

* link to example headings
* misc doc work

* Enhance SDK docstrings for better new user experience

Add comprehensive documentation for key MCP SDK methods and request context:

- send_log_message: Access patterns, logging levels, examples
- check_client_capability: Capability checking with real examples
- elicit methods: Interactive data collection documentation
- Request context ecosystem: RequestContext, Context, access patterns
- Cross-references and practical examples throughout

All changes follow Google Python Style Guide and include verified code examples.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
- Fix absolute link to relative in examples-lowlevel-servers.md
- Add missing return type annotation to session property
- Remove broken cross-references to type aliases (RequestId, ElicitationResult)
- Update CLAUDE.md documentation build command
@mmacy mmacy closed this Aug 22, 2025
@mmacy mmacy deleted the tutorial-scaffolding-01 branch August 22, 2025 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant