hkuds--openharness
5dd8b952ec
A lightweight open-source Python implementation of the Agent Harness architecture. 44x lighter than Claude Code (11K vs 512K lines), 98% core tool coverage. - 43 tools with Pydantic validation and parallel execution - Skills system compatible with anthropics/skills (17+ tested) - Plugin system compatible with claude-code/plugins (12+ tested) - API retry with exponential backoff - Multi-level permissions with path rules - React/Ink TUI with "Oh my Harness!" branding - 114 unit tests + 6 E2E test suites - MIT License
22 行
422 B
Python
22 行
422 B
Python
"""Small stdio MCP server used by integration tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from mcp.server.fastmcp import FastMCP
|
|
|
|
server = FastMCP("fixture-demo")
|
|
|
|
|
|
@server.tool()
|
|
def hello(name: str) -> str:
|
|
return f"fixture-hello:{name}"
|
|
|
|
|
|
@server.resource("fixture://readme", name="Fixture Readme")
|
|
def readme() -> str:
|
|
return "fixture resource contents"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
server.run("stdio")
|