Metadata-Version: 2.4
Name: mcp_server_law_recognition
Version: 0.1.0
Summary: MCP server for retrieving issues from law_recognition
License: Copyright (c) 2021 The Python Packaging Authority
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=1.0.0
Dynamic: license-file

# Project description
Identification and standardization of regulations and legal provisions. Use this tool when you need to:
- Extract from the text paragraph: regulatory name and provisions
- The extracted regulations and laws correspond to the names of standard regulations and the number of clauses in the regulatory database
# Requirements
- requires-python = ">=3.10"
- mcp>=1.0.0
# Installation
- pip install mcp_server_law_recognition
# Usage
## Sample
    from mcp import ClientSession, StdioServerParameters, types
    from mcp.client.stdio import stdio_client
    server_params = StdioServerParameters(
        command="python",  # Executable
        args=["-m","mcp_server_law_recognition"],  # Optional command line arguments
        env={
            "pkulaw_api_key": "da9629867ee841518***********"
        }  # Optional environment variables
    ) 
     
    async def run():
        async with stdio_client(server_params) as (read, write):
            async with ClientSession(
                read, write
            ) as session:
                # Initialize the connection
                await session.initialize()

            tools = await session.list_tools()
            print('tools:',tools)
            result = await session.call_tool("get_law_recognition", arguments={"text": "根据《民法典》第一千二百六十条规定，该法自2021年1月1日起施行，同时废止了《中华人民共和国婚姻法》、《中华人民共和国继承法》、《中华人民共和国民法通则》..."})
            print('result:',result)

    if __name__ == "__main__":
        import asyncio
    
        asyncio.run(run())
# Contact US
- Apply for an APIKEY:lifajie@chinalawinfo.com
